Skip to content

Instantly share code, notes, and snippets.

@Bitaru
Last active June 11, 2016 17:39
Show Gist options
  • Select an option

  • Save Bitaru/6c526d89a6f80c22e2a8e07ef2ebc053 to your computer and use it in GitHub Desktop.

Select an option

Save Bitaru/6c526d89a6f80c22e2a8e07ef2ebc053 to your computer and use it in GitHub Desktop.
{
name: 'demo_front',
target: 'web',
node: {
fs: 'empty'
},
output: {
publicPath: '/',
filename: '[name].js',
chunkFilename: 'chunk.[name].js',
path: '/private/var/www/demo/apps/publisher/dist/public'
},
resolve: {
unsafeCache: true,
packageMains: ['main', 'jsnext:main'],
modulesDirectories: ['node_modules', '/private/var/www/demo/packages'],
extensions: ['', '.js', '.jsx', '.css', '.scss', '.json'],
root: ['/private/var/www/demo/shared',
'/private/var/www/demo/shared/assets',
'/private/var/www/demo/shared/statics',
'/private/var/www/demo/shared/styles',
'/private/var/www/demo/shared/scripts',
'/private/var/www/demo/shared/templates',
'/private/var/www/demo/apps/publisher/src/scripts',
'/private/var/www/demo/apps/publisher/src'
],
alias: {
quill: 'quill/dist/quill.js',
shared: '/private/var/www/demo/shared',
'%': '/private/var/www/demo/shared/scripts',
'@': '/private/var/www/demo/shared/styles'
}
},
resolveLoader: {
modulesDirectories: ['node_modules'],
moduleTemplates: ['*-loader', '*']
},
module: {
noParse: [/node_modules\/quill\/dist/],
loaders: [{
test: /\.txt(\?.+)?$/,
loader: 'raw',
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
]
}, {
test: /\.json(\?.+)?$/,
loader: 'json',
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager',
/node_modules/
]
}, {
loader: 'url',
test: /\.(jpe?g|png|gif)(\?.+)?$/i,
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
],
query: {
name: '[path][name].[ext]',
prefix: 'images/',
limit: 1024
}
}, {
loader: 'url',
test: /\.woff(\?.+)?$/,
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
],
query: {
name: '[path][name].[ext]',
prefix: 'fonts/',
limit: 1024
}
}, {
loader: 'url',
test: /\.woff2(\?.+)?$/,
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
],
query: {
name: '[path][name].[ext]',
prefix: 'fonts/',
limit: 1024
}
}, {
loader: 'url',
test: /\.ttf(\?.+)?$/,
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
],
query: {
name: '[path][name].[ext]',
prefix: 'fonts/',
limit: 1024
}
}, {
loader: 'url',
test: /\.eot(\?.+)?$/,
include: ['/private/var/www/demo/shared/assets',
'/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/manager'
],
query: {
name: '[path][name].[ext]',
prefix: 'fonts/',
limit: 1024
}
}, {
test: /\.svg(\?.+)?$/,
loader: 'svg-inline',
include: ['/private/var/www/demo/packages',
'/private/var/www/demo/apps/publisher',
'/private/var/www/demo/apps/platform',
'/private/var/www/demo/apps/manager'
],
exclude: ['/private/var/www/demo/shared/assets']
}, {
test: /\.css$/,
loaders: ['style',
'css?&localIdentName=[name]-[local]--[hash:base64:5]'
],
include: ['/private/var/www/demo/node_modules',
'/private/var/www/demo/shared/statics'
]
}, {
test: /\.css$/,
loaders: ['style',
'css?modules&importLoaders=1&localIdentName=[name]-[local]--[hash:base64:5]',
'postcss'
],
include: ['/private/var/www/demo/shared/styles',
'/private/var/www/demo/shared/scripts',
'/private/var/www/demo/apps/publisher/src',
'/private/var/www/demo/apps/platform/src'
]
}, {
test: /\.scss$/,
loaders: ['style',
'css?modules&importLoaders=1&localIdentName=[name]-[local]--[hash:base64:5]',
'sass?includePath[]=/private/var/www/demo/node_modules',
'toolbox'
],
include: /node_modules\/react-toolbox\/lib/
}, {
test: /\.jsx?$/,
loader: 'babel',
query: {
cacheDirectory: true,
presets: ['react-hmre']
},
include: ['/private/var/www/demo/shared/scripts',
'/private/var/www/demo/apps/publisher/src/scripts',
'/private/var/www/demo/apps/platform/src/scripts'
]
}],
preLoaders: []
},
plugins: [DefinePlugin {
definitions: {
__QUIET__: false,
__VERBOSE__: false,
__PROFILE__: false,
__DEBUG__: false,
__PRODUCTION__: false,
__DEVELOPMENT__: true,
settings: {
name: '"demo_front"',
description: '"demo"',
host: '"0.0.0.0"',
port: 3000,
root: '"http://localhost:5000"',
apiRoot: '"http://localhost:5000/pub/api/v1"',
analyticsApiRoot: undefined,
playerRoot: undefined
},
'process.env': {
NODE_ENV: undefined
}
}
},
ProvidePlugin {
definitions: {
React: 'react',
Helmet: 'react-helmet',
validator: 'validator'
}
},
ContextReplacementPlugin {
resourceRegExp: /moment[\\\/]locale$/,
newContentResource: undefined,
newContentRecursive: undefined,
newContentRegExp: /^\.\/(en-gb)$/
},
OccurrenceOrderPlugin {
preferEntry: true
},
DedupePlugin {},
NoErrorsPlugin {},
PrefetchPlugin {
request: 'react'
},
HtmlWebpackPlugin {
options: {
template: '/private/var/www/demo/shared/templates/index.html',
filename: 'index.html',
hash: false,
inject: true,
compile: true,
favicon: false,
minify: false,
cache: true,
showErrors: true,
chunks: 'all',
excludeChunks: [],
title: 'demo',
xhtml: false
}
},
SystemBellPlugin {},
HotModuleReplacementPlugin {}
],
eslint: {
configFile: '/private/var/www/demo/.eslintrc',
formatter: [Function],
emitWarning: true,
failOnError: false,
failOnWarning: false
},
postcss: [Function: _default],
profile: false,
stats: {
colors: true
},
toolbox: {
theme: '/private/var/www/demo/shared/styles/toolbox.scss'
},
entry: ['webpack-hot-middleware/client', './app'],
debug: false,
cache: true,
devtool: '#cheap-module-inline-source-map',
context: '/private/var/www/demo/apps/publisher/src/scripts',
watch: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment