kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
33f53a6e78
commit
921a510d9f
|
@ -51,7 +51,6 @@ module.exports = function exports() {
|
||||||
}),
|
}),
|
||||||
new webpack.optimize.CommonsChunkPlugin('common', COMMON_PATH, Infinity)
|
new webpack.optimize.CommonsChunkPlugin('common', COMMON_PATH, Infinity)
|
||||||
],
|
],
|
||||||
devtool: '#inline-source-map',
|
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,5 +4,6 @@ var config = base('development');
|
||||||
|
|
||||||
// development overrides go here
|
// development overrides go here
|
||||||
config.watch = true;
|
config.watch = true;
|
||||||
|
config.devtool = 'cheap-module-eval-source-map';
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|
Ładowanie…
Reference in New Issue