2020-11-08 13:23:38 +01:00
|
|
|
module.exports = {
|
|
|
|
module: {
|
2020-11-18 11:43:45 +01:00
|
|
|
rules: [
|
2020-11-27 19:06:50 +01:00
|
|
|
{
|
|
|
|
test: /\.(js)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: ["eslint-loader"]
|
|
|
|
},
|
2020-11-18 11:43:45 +01:00
|
|
|
{
|
|
|
|
test: /\.s[ac]ss$/i,
|
|
|
|
use: [
|
|
|
|
// Creates `style` nodes from JS strings
|
|
|
|
"style-loader",
|
|
|
|
// Translates CSS into CommonJS
|
|
|
|
"css-loader",
|
|
|
|
// Compiles Sass to CSS
|
|
|
|
"sass-loader",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-11-27 19:54:43 +01:00
|
|
|
test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
|
2020-11-18 11:43:45 +01:00
|
|
|
use: [{
|
|
|
|
loader: "file-loader",
|
|
|
|
options: {
|
|
|
|
name: "[name].[ext]",
|
|
|
|
outputPath: "res/fonts/"
|
|
|
|
}
|
|
|
|
}]
|
2020-11-27 19:54:43 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(svg)$/,
|
|
|
|
use: [{
|
|
|
|
loader: "file-loader",
|
|
|
|
options: {
|
|
|
|
name: "[name].[ext]",
|
|
|
|
outputPath: "res/svg/"
|
|
|
|
}
|
|
|
|
}]
|
2020-11-18 11:43:45 +01:00
|
|
|
}
|
|
|
|
]
|
2020-11-08 13:23:38 +01:00
|
|
|
}
|
|
|
|
};
|