|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
// assetsDir: 'static',
|
|
|
|
|
|
// // 是否为生产环境构建生成 source map?
|
|
|
- // productionSourceMap: false,
|
|
|
+ productionSourceMap: false,
|
|
|
|
|
|
// // 配置 webpack-dev-server 行为。
|
|
|
// devServer: {
|
|
@@ -35,5 +35,12 @@ module.exports = {
|
|
|
// patterns: [path.resolve(__dirname, './src/assets/css/variable.less')]
|
|
|
// }
|
|
|
// }
|
|
|
+ chainWebpack: config => {
|
|
|
+ // 查看打包文件体积大小
|
|
|
+ config
|
|
|
+ .plugin('webpack-bundle-analyzer')
|
|
|
+ .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin)
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|