Ensure bundle analysis is always enabled (#267)
This commit is contained in:
parent
b05f301c21
commit
c261892de4
|
@ -17,7 +17,6 @@
|
||||||
"build:tool": "vue-cli-service build src/nginxconfig/mount.js --no-clean",
|
"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": "npm run build:template && npm run build:prism && npm run dev:tool",
|
||||||
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
|
"dev:tool": "vue-cli-service serve src/nginxconfig/mount.js",
|
||||||
"analyze": "npm run build:tool -- --analyze",
|
|
||||||
"deploy:spaces:comment": "do-vue comment nginxconfig",
|
"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": "npm run test:eslint && npm run test:sass-lint && npm run test:i18n-packs && npm run test:jest",
|
||||||
"test:jest": "jest /test/.*.js?$",
|
"test:jest": "jest /test/.*.js?$",
|
||||||
|
|
|
@ -48,9 +48,9 @@ module.exports = {
|
||||||
} },
|
} },
|
||||||
new WebpackRequireFrom({ methodName: '__webpackDynamicImportURL' }),
|
new WebpackRequireFrom({ methodName: '__webpackDynamicImportURL' }),
|
||||||
// Analyze the bundle
|
// Analyze the bundle
|
||||||
process.argv.includes('--analyze') && new BundleAnalyzerPlugin(),
|
new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false }),
|
||||||
process.argv.includes('--analyze') && new DuplicatePackageCheckerPlugin(),
|
new DuplicatePackageCheckerPlugin(),
|
||||||
].filter(x => !!x),
|
],
|
||||||
},
|
},
|
||||||
chainWebpack: config => {
|
chainWebpack: config => {
|
||||||
// Inject resolve-url-loader into the SCSS loader rules (to allow relative fonts in do-bulma to work)
|
// Inject resolve-url-loader into the SCSS loader rules (to allow relative fonts in do-bulma to work)
|
||||||
|
|
Loading…
Reference in New Issue