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
|
|
|
}
|