From 986b560265ea7cab076dc227a9d7d0948e8a80a3 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Tue, 5 Jan 2021 03:55:35 +0000 Subject: [PATCH] Add js build size optimisations --- .drone.yml | 2 +- vue.config.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 vue.config.js diff --git a/.drone.yml b/.drone.yml index 2f56b8b..e3d2c40 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,7 +6,7 @@ steps: - name: build image: node:lts environment: - NODE_ENV: PRODUCTION + NODE_ENV: production commands: - npm install - npm run build diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..d6d99d9 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,11 @@ +module.exports = { + productionSourceMap: false, + configureWebpack: { + optimization: { + splitChunks: { + minSize: 10000, + maxSize: 250000 + } + } + } +}