Created
May 16, 2015 18:46
-
-
Save jbasdf/b143c09c879a1706922f to your computer and use it in GitHub Desktop.
Development webpack.config.js for hot reloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ context: '/Users/jbasdf/projects/canvas_starter_app/client/config', | |
entry: | |
{ app: | |
[ 'webpack-dev-server/client?http://localhost:8080/assets/', | |
'webpack/hot/dev-server', | |
'/Users/jbasdf/projects/canvas_starter_app/client/js/app.jsx' ], | |
app_admin: | |
[ 'webpack-dev-server/client?http://localhost:8080/assets/', | |
'webpack/hot/dev-server', | |
'/Users/jbasdf/projects/canvas_starter_app/client/js/app_admin.jsx' ], | |
styles: | |
[ 'webpack-dev-server/client?http://localhost:8080/assets/', | |
'webpack/hot/dev-server', | |
'/Users/jbasdf/projects/canvas_starter_app/client/styles/styles.js' ] }, | |
output: | |
{ path: '/Users/jbasdf/projects/canvas_starter_app/app/assets/javascripts', | |
filename: '[name]_web_pack_bundle.js', | |
chunkFilename: '[id].js', | |
publicPath: 'http://localhost:8080/assets/', | |
pathinfo: true }, | |
resolve: | |
{ extensions: [ '', '.js', '.json', '.jsx' ], | |
modulesDirectories: [ 'node_modules', 'vendor' ] }, | |
cache: true, | |
quiet: false, | |
noInfo: false, | |
debug: false, | |
outputPathinfo: true, | |
devtool: 'eval', | |
stats: { colors: true }, | |
plugins: [ | |
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"', '__DEV__': true, ' DEBUG': '*' }), | |
new webpack.HotModuleReplacementPlugin(), | |
new webpack.NoErrorsPlugin() | |
], | |
module: { loaders: [ | |
{ test: /\.js$/, loaders: jsLoaders, exclude: /node_modules/ }, | |
{ test: /\.jsx?$/, loaders: jsLoaders, exclude: /node_modules/ }, | |
{ test: /\.scss$/, loader: scssLoaders.join('!') }, | |
{ test: /\.css$/ , loader: cssLoaders.join('!') }, | |
{ test: /\.less$/ , loader: lessLoaders.join('!') }, | |
{ test: /\.(png|woff|woff2|eot|ttf|svg)($|\?)/, loader: 'url-loader' } | |
]}, | |
devServer: { | |
stats: { | |
cached: false, | |
exclude: excludeFromStats | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment