Skip to content

Commit

Permalink
add postcss and sass loader options
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnbot committed Aug 17, 2017
1 parent 7cf0230 commit 75fb852
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
const path = require('path');
const path = require("path");

const modulesPath = path.resolve(__dirname, "../modules")

module.exports = {
module: {
rules: [
{
test: /\.scss$/,
loaders: ["style-loader", "css-loader", "postcss-loader", "sass-loader"],
include: path.resolve(__dirname, '../modules')
loaders: [
"style-loader",
"css-loader",
{
loader: "postcss-loader",
options: {
config: {
path: require.resolve("./postcss.config.js"),
},
},
},
{
loader: "sass-loader",
options: {
includePaths: [
modulesPath,
],
}
},
],
include: modulesPath,
}
]
}
},
}

0 comments on commit 75fb852

Please sign in to comment.