2018-07-14 04:56:41 +03:00
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
2017-05-03 03:04:16 +03:00
|
|
|
|
|
|
|
module.exports = {
|
2018-07-14 04:56:41 +03:00
|
|
|
test: /\.s?css$/i,
|
|
|
|
use: [
|
|
|
|
MiniCssExtractPlugin.loader,
|
2019-03-15 16:05:31 +02:00
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
importLoaders: 2,
|
|
|
|
},
|
|
|
|
},
|
2018-07-14 04:56:41 +03:00
|
|
|
{
|
|
|
|
loader: 'postcss-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
},
|
|
|
|
},
|
2018-07-15 19:17:37 +03:00
|
|
|
{
|
|
|
|
loader: 'sass-loader',
|
|
|
|
options: {
|
|
|
|
includePaths: ['app/javascript'],
|
2018-12-31 19:11:48 +02:00
|
|
|
implementation: require('sass'),
|
2018-07-14 04:56:41 +03:00
|
|
|
sourceMap: true,
|
2018-07-15 19:17:37 +03:00
|
|
|
},
|
|
|
|
},
|
2018-07-14 04:56:41 +03:00
|
|
|
],
|
2017-05-20 18:31:47 +03:00
|
|
|
};
|