Skip to content

Commit 733dc92

Browse files
committed
Replace @storybook/addon-styling with @storybook/addon-styling-webpack
1 parent f00327c commit 733dc92

File tree

3 files changed

+25
-307
lines changed

3 files changed

+25
-307
lines changed

.storybook/main.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,27 @@ module.exports = {
1818
},
1919
},
2020
'@storybook/addon-a11y',
21-
'@storybook/addon-styling-webpack'
21+
'@storybook/addon-styling-webpack',
22+
({
23+
name: "@storybook/addon-styling-webpack",
24+
25+
options: {
26+
rules: [{
27+
test: /\.css$/,
28+
sideEffects: true,
29+
use: [
30+
require.resolve("style-loader"),
31+
{
32+
loader: require.resolve("css-loader"),
33+
options: {
34+
35+
36+
},
37+
},
38+
],
39+
},],
40+
}
41+
})
2242
],
2343
framework: {
2444
name: '@storybook/nextjs',

0 commit comments

Comments
 (0)