diff --git a/package.json b/package.json index cc2cabe..f57f86c 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "build:tool": "vue-cli-service build src/nginxconfig/mount.js --no-clean", "dev": "npm run build:template && npm run build:prism && npm run dev:tool", "dev:tool": "vue-cli-service serve src/nginxconfig/mount.js", - "analyze": "npm run build:tool -- --analyze", "deploy:spaces:comment": "do-vue comment nginxconfig", "test": "npm run test:eslint && npm run test:sass-lint && npm run test:i18n-packs && npm run test:jest", "test:jest": "jest /test/.*.js?$", diff --git a/vue.config.js b/vue.config.js index dc37a5d..e91be44 100644 --- a/vue.config.js +++ b/vue.config.js @@ -48,9 +48,9 @@ module.exports = { } }, new WebpackRequireFrom({ methodName: '__webpackDynamicImportURL' }), // Analyze the bundle - process.argv.includes('--analyze') && new BundleAnalyzerPlugin(), - process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(), - ].filter(x => !!x), + new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false }), + new DuplicatePackageCheckerPlugin(), + ], }, chainWebpack: config => { // Inject resolve-url-loader into the SCSS loader rules (to allow relative fonts in do-bulma to work)