优化调整web端内存溢出的问题

This commit is contained in:
aixianling
2023-04-04 09:19:47 +08:00
parent 5e7ef3d27a
commit f3cf8360c2
6 changed files with 78 additions and 26 deletions

View File

@@ -27,10 +27,10 @@ module.exports = {
.add(path.resolve(__dirname, 'project'))
.add(path.resolve(__dirname, 'examples'))
.add(path.resolve(__dirname, 'ui'))
.end()
.use('babel')
.loader('babel-loader')
.tap(options => options);
.end().use('babel').loader('babel-loader').tap(options => options);
config.output.chunkFilename('[name].js');
config.plugins.delete("friendly-errors");
config.plugin("limit").use(require("webpack/lib/optimize/LimitChunkCountPlugin"), [{maxChunks: 10}]).tap(options => options)
},
devServer: {
host: '0.0.0.0', //主机地址
@@ -136,6 +136,6 @@ module.exports = {
}
}
},
disableHostCheck: true
disableHostCheck: true,
}
};