Fixing webpack config for production mode.

We don't want inline source in prod. Optimising final bundle size a lot.
For dev mode, cheap-module-eval is faster than inline-source.
pull/2762/merge
Vincent Audebert 2016-06-17 11:48:17 +12:00 zatwierdzone przez Matt Westcott
rodzic 33f53a6e78
commit 921a510d9f
2 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -51,7 +51,6 @@ module.exports = function exports() {
}),
new webpack.optimize.CommonsChunkPlugin('common', COMMON_PATH, Infinity)
],
devtool: '#inline-source-map',
module: {
loaders: [
{

Wyświetl plik

@ -4,5 +4,6 @@ var config = base('development');
// development overrides go here
config.watch = true;
config.devtool = 'cheap-module-eval-source-map';
module.exports = config;