From b00c79de7f537969611554da326b3f8ec8db28ca Mon Sep 17 00:00:00 2001 From: Victor Trinh Date: Wed, 20 Nov 2024 15:43:35 -0500 Subject: [PATCH] Add splitChunks --- .storybook/main.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index c62d2f895..185da450f 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -96,7 +96,18 @@ const storybookConfig: StorybookConfig = { * Minimize the bundle size to prevent Netlify from hanging at the "Sealing asset processing TerserPlugin" step. */ config.optimization = { - minimize: false + minimize: false, + splitChunks: { + minSize: 10000, + maxSize: 250000 + } + }; + + config.performance = { + ...config.performance, + hints: false, + maxEntrypointSize: 512000, + maxAssetSize: 512000 }; return config;