1
1
mirror of https://github.com/primer/css.git synced 2024-12-24 14:42:26 +03:00
css/.storybook/webpack.config.js
2017-09-12 16:42:56 -07:00

39 lines
744 B
JavaScript

const path = require("path");
const modulesPath = path.resolve(__dirname, "../modules")
module.exports = {
module: {
rules: [
{
test: /\.md$/,
use: "raw-loader",
},
{
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,
},
],
},
}