2018-07-14 03:56:41 +02:00
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
2017-05-03 02:04:16 +02:00
|
|
|
|
|
|
|
module.exports = {
|
2018-07-14 03:56:41 +02:00
|
|
|
test: /\.s?css$/i,
|
|
|
|
use: [
|
|
|
|
MiniCssExtractPlugin.loader,
|
2019-03-15 15:05:31 +01:00
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
importLoaders: 2,
|
2019-07-23 11:07:47 +02:00
|
|
|
modules: {
|
|
|
|
localIdentName: '[name]__[local]___[hash:base64:5]',
|
|
|
|
},
|
2019-03-15 15:05:31 +01:00
|
|
|
},
|
|
|
|
},
|
2018-07-14 03:56:41 +02:00
|
|
|
{
|
2018-12-31 18:11:48 +01:00
|
|
|
loader: 'postcss-loader',
|
2018-07-14 03:56:41 +02:00
|
|
|
options: {
|
2018-12-31 18:11:48 +01:00
|
|
|
sourceMap: true,
|
2018-07-14 03:56:41 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2018-12-31 18:11:48 +01:00
|
|
|
loader: 'sass-loader',
|
2018-07-14 03:56:41 +02:00
|
|
|
options: {
|
2018-12-31 18:11:48 +01:00
|
|
|
implementation: require('sass'),
|
2018-07-14 03:56:41 +02:00
|
|
|
sourceMap: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2017-05-20 17:31:47 +02:00
|
|
|
};
|