Skip to content

Commit

Permalink
fix(storybook): fix sass loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Feb 8, 2024
1 parent 159f9a1 commit 85d8d69
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = ({ config }) => {
// use style-loader for style-dictionary scss files
config.module.rules.push({
test: /\.scss$/,
use: ["style-loader"],
use: ["sass-loader"],
});

return config;
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
"rollup-plugin-css-only": "^4.5.2",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-ts": "^3.4.5",
"sass": "^1.70.0",
"sass-loader": "^14.1.0",
"simplex-noise": "^4.0.1",
"storybook": "^7.6.13",
"storybook-addon-emotion-theme": "^2.1.1",
Expand Down
41 changes: 41 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,8 @@ __metadata:
rollup-plugin-css-only: "npm:^4.5.2"
rollup-plugin-delete: "npm:^2.0.0"
rollup-plugin-ts: "npm:^3.4.5"
sass: "npm:^1.70.0"
sass-loader: "npm:^14.1.0"
simplex-noise: "npm:^4.0.1"
storybook: "npm:^7.6.13"
storybook-addon-emotion-theme: "npm:^2.1.1"
Expand Down Expand Up @@ -19927,6 +19929,32 @@ __metadata:
languageName: node
linkType: hard

"sass-loader@npm:^14.1.0":
version: 14.1.0
resolution: "sass-loader@npm:14.1.0"
dependencies:
neo-async: "npm:^2.6.2"
peerDependencies:
"@rspack/core": 0.x || 1.x
node-sass: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0
sass: ^1.3.0
sass-embedded: "*"
webpack: ^5.0.0
peerDependenciesMeta:
"@rspack/core":
optional: true
node-sass:
optional: true
sass:
optional: true
sass-embedded:
optional: true
webpack:
optional: true
checksum: 10c0/c7f663ad1fa84e2564659ffba87b89d2ed84eae09a03f78918b3e4499787b78a57d9f157009dda350499b210d4b5c2e7b412692d9087166031c3826a2f176d23
languageName: node
linkType: hard

"sass@npm:*, sass@npm:^1.23.7":
version: 1.69.5
resolution: "sass@npm:1.69.5"
Expand All @@ -19940,6 +19968,19 @@ __metadata:
languageName: node
linkType: hard

"sass@npm:^1.70.0":
version: 1.70.0
resolution: "sass@npm:1.70.0"
dependencies:
chokidar: "npm:>=3.0.0 <4.0.0"
immutable: "npm:^4.0.0"
source-map-js: "npm:>=0.6.2 <2.0.0"
bin:
sass: sass.js
checksum: 10c0/7c309ee1c096d591746d122da9f1ebd65b4c4b3a60c2cc0ec720fd98fe1205fa8b44c9f563d113b9fdfeb25af1e32ec9b3e048bd4b8e05d267f020953bd7baf0
languageName: node
linkType: hard

"saxes@npm:^6.0.0":
version: 6.0.0
resolution: "saxes@npm:6.0.0"
Expand Down

0 comments on commit 85d8d69

Please sign in to comment.