Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
victortrinh2 committed Nov 19, 2024
1 parent 04a473c commit fbb6363
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ const storybookConfig: StorybookConfig = {

config.devtool = configType !== "PRODUCTION" ? "false" : "inline-source-map";

/**
* This block of code addresses build process issues.
*
* Minimize the bundle size to prevent Netlify from hanging at the "Sealing asset processing TerserPlugin" step.
* Also added performance optimization to ensure successful deployment to Chromatic.
*/
config.optimization = {
...config.optimization,
minimize: false,
Expand All @@ -96,7 +102,6 @@ const storybookConfig: StorybookConfig = {
maxSize: 250000
}
};

config.performance = {
...config.performance,
hints: false,
Expand Down

0 comments on commit fbb6363

Please sign in to comment.