core: fix webpack analyzer

This commit is contained in:
Koushik Dutta
2022-09-11 09:01:27 -07:00
parent ba74ea5362
commit 924eb433d1
3 changed files with 1194 additions and 585 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -97,6 +97,7 @@
"stylus-loader": "^3.0.1",
"typescript": "^4.8.2",
"vue-cli-plugin-vuetify": "^2.4.2",
"vue-cli-plugin-webpack-bundle-analyzer": "~4.0.0",
"vue-template-compiler": "^2.7.10",
"vuetify-loader": "^1.7.2",
"worker-loader": "^3.0.8"

View File

@@ -15,11 +15,11 @@ const proxyOpts = {
};
module.exports = {
// pluginOptions: {
// webpackBundleAnalyzer: {
// openAnalyzer: true
// }
// },
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: process.env['NODE_ENV'] === 'production'
}
},
productionSourceMap: false,
transpileDependencies: [
@@ -112,6 +112,6 @@ module.exports = {
}
}
if (process.env['NODE_ENV'] == 'production') {
if (process.env['NODE_ENV'] === 'production') {
module.exports.configureWebpack.devtool = 'none';
}