1
1
mirror of https://github.com/primer/css.git synced 2024-12-25 15:14:59 +03:00
css/.storybook/webpack.config.js

35 lines
675 B
JavaScript
Raw Normal View History

2017-08-18 02:25:33 +03:00
const path = require("path");
const modulesPath = path.resolve(__dirname, "../modules")
2017-08-16 21:28:16 +03:00
module.exports = {
module: {
rules: [
{
test: /\.scss$/,
2017-08-18 02:25:33 +03:00
loaders: [
"style-loader",
"css-loader",
{
loader: "postcss-loader",
options: {
config: {
path: require.resolve("./postcss.config.js"),
},
},
},
{
loader: "sass-loader",
options: {
includePaths: [
modulesPath,
],
}
},
],
include: modulesPath,
2017-08-16 21:28:16 +03:00
}
]
2017-08-18 02:25:33 +03:00
},
2017-08-16 21:28:16 +03:00
}