gab-social/config/webpack/rules/css.js

23 lines
435 B
JavaScript
Raw Normal View History

2019-07-02 08:10:25 +01:00
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
2020-01-23 16:35:36 +00:00
2019-07-02 08:10:25 +01:00
module.exports = {
test: /\.s?css$/i,
use: [
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: {
sourceMap: true,
2020-03-04 04:59:11 +00:00
importLoaders: 1,
2020-02-03 18:24:24 +00:00
modules: true,
2020-02-04 15:50:18 +00:00
localIdentName: '[hash:base64:5]',
2019-07-02 08:10:25 +01:00
},
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
},
},
],
2020-04-15 22:35:57 +01:00
};