Skip to content

Commit

Permalink
fix(storybook): fix loaders
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudmanson committed Feb 8, 2024
1 parent 7f907fc commit 159f9a1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ module.exports = ({ config }) => {
},
});

// use style-loader and css-loader for style-dictionary css/scss files
// use css-loader for style-dictionary css files
config.module.rules.push({
test: /\.(css|scss)$/,
use: ["style-loader", "css-loader"],
test: /\.css$/,
use: ["css-loader"],
});

// use style-loader for style-dictionary scss files
config.module.rules.push({
test: /\.scss$/,
use: ["style-loader"],
});

return config;
Expand Down

0 comments on commit 159f9a1

Please sign in to comment.