2018-07-14 03:56:41 +02:00
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
2017-05-20 17:31:47 +02:00
|
|
|
const { env } = require('../configuration.js');
|
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,
|
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
minimize: env.NODE_ENV === 'production',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: 'postcss-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'sass-loader',
|
|
|
|
],
|
2017-05-20 17:31:47 +02:00
|
|
|
};
|