Skip to content

Commit

Permalink
Add splitChunks
Browse files Browse the repository at this point in the history
  • Loading branch information
victortrinh2 committed Nov 20, 2024
1 parent 618eb39 commit b00c79d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b00c79d

Please sign in to comment.