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