From eb2acf3f04132dd384af62858873b228acb034e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6Ltorio?= Date: Sat, 5 Oct 2024 16:12:28 +0200 Subject: [PATCH] splitchunks --- webpack.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 0454259..f88e90e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -30,6 +30,12 @@ module.exports = async (env, options) => { output: { clean: true, }, + optimization: { + splitChunks: { + maxSize: 250000, + chunks: 'all' + } + }, resolve: { extensions: [".ts", ".tsx", ".html", ".js"], fallback: { url: false, fs: false, module: false },