Skip to content

Commit 68b76b5

Browse files
authored
Merge pull request #1137 from Stupidism/fix-custom-webpack-config
docs(custom-webpack-config): rules not loaders
2 parents 96a90d3 + b019a1b commit 68b76b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • docs/pages/configurations/custom-webpack-config

docs/pages/configurations/custom-webpack-config/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ const path = require('path');
2323

2424
module.exports = {
2525
module: {
26-
loaders: [
26+
rules: [
2727
{
2828
test: /\.scss$/,
29-
loaders: ["style", "css", "sass"],
29+
loaders: ["style-loader", "css-loader", "sass-loader"],
3030
include: path.resolve(__dirname, '../')
3131
}
3232
]
@@ -67,9 +67,9 @@ module.exports = function(storybookBaseConfig, configType) {
6767
// 'PRODUCTION' is used when building the static version of storybook.
6868

6969
// Make whatever fine-grained changes you need
70-
storybookBaseConfig.module.loaders.push({
70+
storybookBaseConfig.module.rules.push({
7171
test: /\.scss$/,
72-
loaders: ["style", "css", "sass"],
72+
loaders: ["style-loader", "css-loader", "sass-loader"],
7373
include: path.resolve(__dirname, '../')
7474
});
7575

0 commit comments

Comments
 (0)