Ensure bundle analysis is always enabled (#267)
parent
b05f301c21
commit
c261892de4
|
@ -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?$",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue