2018-07-19 13:11:01 +02:00
|
|
|
module.exports = {
|
2019-06-12 23:55:00 +02:00
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.(js|jsx)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: "babel-loader"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /^(?!.*?\.module).*\.css$/,
|
|
|
|
use: ['style-loader', 'css-loader']
|
2018-07-19 13:11:01 +02:00
|
|
|
},
|
2019-06-12 23:55:00 +02:00
|
|
|
{
|
|
|
|
test: /\.module\.css$/,
|
|
|
|
use: ['style-loader', {
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
modules: true
|
2018-07-19 13:11:01 +02:00
|
|
|
}
|
2019-06-12 23:55:00 +02:00
|
|
|
}]
|
2018-07-19 13:11:01 +02:00
|
|
|
},
|
2019-06-12 23:55:00 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
test: /\.html$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: "html-loader"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2018-07-19 13:11:01 +02:00
|
|
|
};
|