From bb2f786965f019eba150fef1c24c0e74ba0f7e54 Mon Sep 17 00:00:00 2001 From: Sandra Date: Mon, 31 Jan 2022 02:22:18 +0100 Subject: [PATCH] Optimize build with splitChunks --- frontend/vue.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 frontend/vue.config.js diff --git a/frontend/vue.config.js b/frontend/vue.config.js new file mode 100644 index 0000000..52fddb9 --- /dev/null +++ b/frontend/vue.config.js @@ -0,0 +1,10 @@ +module.exports = { + configureWebpack: { + optimization: { + splitChunks: { + minSize: 32_768, // 32 KiB + maxSize: 262_144, // 256 KiB + } + } + } +};