ignore large size of devel modules
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ const path = require('path');
|
|||||||
|
|
||||||
module.exports = (env, argv) => {
|
module.exports = (env, argv) => {
|
||||||
const mode = argv.mode === 'production' ? 'prod' : 'dev';
|
const mode = argv.mode === 'production' ? 'prod' : 'dev';
|
||||||
|
const maxAssetSize = mode === 'prod' ? 360000 : 1512000;
|
||||||
return {
|
return {
|
||||||
entry: {
|
entry: {
|
||||||
index: path.resolve(__dirname, 'src/index.js'),
|
index: path.resolve(__dirname, 'src/index.js'),
|
||||||
@@ -52,8 +53,8 @@ module.exports = (env, argv) => {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
performance: {
|
performance: {
|
||||||
maxEntrypointSize: 360000,
|
maxEntrypointSize: maxAssetSize,
|
||||||
maxAssetSize: 360000
|
maxAssetSize: maxAssetSize
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CopyPlugin({
|
new CopyPlugin({
|
||||||
|
|||||||
Reference in New Issue
Block a user