Skip to content

Commit

Permalink
Merge pull request #1137 from Stupidism/fix-custom-webpack-config
Browse files Browse the repository at this point in the history
docs(custom-webpack-config): rules not loaders
  • Loading branch information
ndelangen authored May 27, 2017
2 parents 96a90d3 + b019a1b commit 68b76b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/pages/configurations/custom-webpack-config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const path = require('path');

module.exports = {
module: {
loaders: [
rules: [
{
test: /\.scss$/,
loaders: ["style", "css", "sass"],
loaders: ["style-loader", "css-loader", "sass-loader"],
include: path.resolve(__dirname, '../')
}
]
Expand Down Expand Up @@ -67,9 +67,9 @@ module.exports = function(storybookBaseConfig, configType) {
// 'PRODUCTION' is used when building the static version of storybook.

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

Expand Down

0 comments on commit 68b76b5

Please sign in to comment.