module.exports = { publicPath: '/', assetsDir: 'static', lintOnSave: true, productionSourceMap: false, css: { sourceMap: false }, // 打包体积大报的错 configureWebpack: (config) => { if (process.env.NODE_ENV === 'production') {// 为生产环境修改配置... config.mode = 'production'; config["performance"] = {//打包文件大小配置 "maxEntrypointSize": 10000000, "maxAssetSize": 30000000 } } } };