mirror of
https://github.com/primer/css.git
synced 2024-12-25 07:03:35 +03:00
35 lines
675 B
JavaScript
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,
|
|
}
|
|
]
|
|
},
|
|
}
|