1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 07:03:35 +03:00
css/.storybook/webpack.config.js
2017-08-17 16:25:33 -07:00

35 lines
675 B
JavaScript

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