Add js build size optimisations
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
45b5ea8aba
commit
986b560265
|
@ -6,7 +6,7 @@ steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: node:lts
|
image: node:lts
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: PRODUCTION
|
NODE_ENV: production
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
module.exports = {
|
||||||
|
productionSourceMap: false,
|
||||||
|
configureWebpack: {
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
minSize: 10000,
|
||||||
|
maxSize: 250000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue