Skip to content

Commit 6582711

Browse files
committed
Remove new styling addon
1 parent 733dc92 commit 6582711

File tree

3 files changed

+4
-47
lines changed

3 files changed

+4
-47
lines changed

.storybook/main.js

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,13 @@ const StylelintWebpackPlugin = require('stylelint-webpack-plugin');
33
const YAML = require('yaml');
44

55
module.exports = {
6-
staticDirs: [path.resolve(__dirname, '../public')],
6+
staticDirs: ['../public'],
77
stories: ['../source/**/*.stories.@(js|jsx|ts|tsx)', '../source/**/*.mdx'],
88
addons: [
99
'@storybook/addon-links',
1010
'@storybook/addon-essentials',
1111
'@storybook/addon-interactions',
12-
{
13-
name: '@storybook/addon-styling',
14-
options: {
15-
postcssLoaderOptions: {
16-
implementation: require('postcss'),
17-
},
18-
},
19-
},
2012
'@storybook/addon-a11y',
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-
})
4213
],
4314
framework: {
4415
name: '@storybook/nextjs',
@@ -47,7 +18,7 @@ module.exports = {
4718
webpackFinal: async config => {
4819
config.plugins.push(
4920
new StylelintWebpackPlugin({
50-
exclude: ['node_modules', 'storybook'],
21+
exclude: ['node_modules', 'storybook', '.next'],
5122
}),
5223
);
5324
config.module.rules.find(

package-lock.json

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"@storybook/addon-essentials": "^7.5.1",
3838
"@storybook/addon-interactions": "^7.5.1",
3939
"@storybook/addon-links": "^7.5.1",
40-
"@storybook/addon-styling-webpack": "^0.0.5",
4140
"@storybook/nextjs": "^7.5.1",
4241
"@storybook/react": "^7.5.1",
4342
"@storybook/testing-library": "^0.2.2",
@@ -63,7 +62,7 @@
6362
"mkdirp": "^1.0.4",
6463
"postcss": "^8.4.21",
6564
"postcss-advanced-variables": "github:kmonahan/postcss-advanced-variables",
66-
"postcss-loader": "^7.0.2",
65+
"postcss-loader": "^7.3.3",
6766
"postcss-nesting": "^11.1.0",
6867
"postcss-preset-env": "^8.0.1",
6968
"postcss-rem": "^2.0.2",

0 commit comments

Comments
 (0)