打包大小

This commit is contained in:
wangyan 2024-05-23 22:08:33 +08:00
parent 97b709112a
commit a498a44851

View File

@ -37,6 +37,10 @@ const webpackConfig = merge(baseWebpackConfig, {
filename: utils.assetsPath('js/[name].[chunkhash:8].js'),
chunkFilename: utils.assetsPath('js/[name].[chunkhash:8].js')
},
performance: {
maxEntrypointSize: 50000000,
maxAssetSize: 30000000,
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({