Skip to content

Commit 2c39b62

Browse files
committed
meta: updated storybook core build
1 parent 4eca18b commit 2c39b62

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ junit.xml
2424
# Storybook
2525
storybook-static
2626
.nyc_output
27+
build-storybook.log
2728

2829
# Vercel Files
2930
.vercel

.storybook/main.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@ const config: StorybookConfig = {
1111
],
1212
logLevel: 'error',
1313
staticDirs: ['../public'],
14-
features: { storyStoreV7: true },
15-
core: { disableTelemetry: true },
14+
core: {
15+
disableTelemetry: true,
16+
builder: {
17+
name: '@storybook/builder-webpack5',
18+
options: {
19+
fsCache: true,
20+
lazyCompilation: true,
21+
},
22+
},
23+
},
1624
framework: { name: '@storybook/nextjs', options: {} },
1725
webpackFinal: async config => {
1826
// This allows us to resolve node_modules and everything from the Application source
@@ -24,6 +32,13 @@ const config: StorybookConfig = {
2432
'@': resolve(__dirname, '../'),
2533
};
2634

35+
// We want to disable the annoying performance hints
36+
// as we know that Storybook has big bundles
37+
config.performance = {
38+
...config.performance,
39+
hints: false,
40+
};
41+
2742
return config;
2843
},
2944
};

styles/new/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
@charset "utf-8";
2+
13
/* IDE Support
24
* We recommend Stylelint and Tailwind Extensions for better IDE support.
35
* @see https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss
46
* @see https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
57
*/
68

7-
@charset "utf-8";
8-
99
@tailwind base;
1010
@tailwind components;
1111
@tailwind utilities;

0 commit comments

Comments
 (0)