Add js build size optimisations
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jack Hadrill 2021-01-05 03:55:35 +00:00
parent 45b5ea8aba
commit 986b560265
2 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,7 @@ steps:
- name: build
image: node:lts
environment:
NODE_ENV: PRODUCTION
NODE_ENV: production
commands:
- npm install
- npm run build

11
vue.config.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = {
productionSourceMap: false,
configureWebpack: {
optimization: {
splitChunks: {
minSize: 10000,
maxSize: 250000
}
}
}
}