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

39 lines
744 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: [
2017-09-13 02:42:56 +03:00
{
test: /\.md$/,
use: "raw-loader",
},
2017-08-16 21:28:16 +03:00
{
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-09-13 02:42:56 +03:00
},
],
2017-08-18 02:25:33 +03:00
},
2017-08-16 21:28:16 +03:00
}