Browse Source

Ignore chunks on dev

master
Eduard Kuzmenko 4 years ago
parent
commit
0b18ea4549
  1. 8
      webpack.dev.js

8
webpack.dev.js

@ -1,10 +1,16 @@
process.env.NODE_ENV = 'development'; process.env.NODE_ENV = 'development';
const webpack = require('webpack');
const merge = require('webpack-merge'); const merge = require('webpack-merge');
const common = require('./webpack.common.js'); const common = require('./webpack.common.js');
module.exports = merge(common, { module.exports = merge(common, {
mode: 'development', mode: 'development',
devtool: 'inline-source-map' devtool: 'inline-source-map',
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
],
}); });

Loading…
Cancel
Save