mirror of
https://github.com/koush/scrypted.git
synced 2026-02-08 16:29:57 +00:00
core: fix webpack analyzer
This commit is contained in:
1766
plugins/core/ui/package-lock.json
generated
1766
plugins/core/ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user