Skip to content

Commit

Permalink
meta: updated storybook core build
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Sep 26, 2023
1 parent 4eca18b commit 2c39b62
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ junit.xml
# Storybook
storybook-static
.nyc_output
build-storybook.log

# Vercel Files
.vercel
Expand Down
19 changes: 17 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ const config: StorybookConfig = {
],
logLevel: 'error',
staticDirs: ['../public'],
features: { storyStoreV7: true },
core: { disableTelemetry: true },
core: {
disableTelemetry: true,
builder: {
name: '@storybook/builder-webpack5',
options: {
fsCache: true,
lazyCompilation: true,
},
},
},
framework: { name: '@storybook/nextjs', options: {} },
webpackFinal: async config => {
// This allows us to resolve node_modules and everything from the Application source
Expand All @@ -24,6 +32,13 @@ const config: StorybookConfig = {
'@': resolve(__dirname, '../'),
};

// We want to disable the annoying performance hints
// as we know that Storybook has big bundles
config.performance = {
...config.performance,
hints: false,
};

return config;
},
};
Expand Down
4 changes: 2 additions & 2 deletions styles/new/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@charset "utf-8";

/* IDE Support
* We recommend Stylelint and Tailwind Extensions for better IDE support.
* @see https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss
* @see https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
*/

@charset "utf-8";

@tailwind base;
@tailwind components;
@tailwind utilities;

0 comments on commit 2c39b62

Please sign in to comment.