2018-07-14 02:56:41 +01:00
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
2017-05-20 16:31:47 +01:00
|
|
|
const { env } = require('../configuration.js');
|
2017-05-03 01:04:16 +01:00
|
|
|
|
|
|
|
module.exports = {
|
2018-07-14 02:56:41 +01:00
|
|
|
test: /\.s?css$/i,
|
|
|
|
use: [
|
|
|
|
MiniCssExtractPlugin.loader,
|
|
|
|
{
|
|
|
|
loader: 'css-loader',
|
|
|
|
options: {
|
|
|
|
minimize: env.NODE_ENV === 'production',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
loader: 'postcss-loader',
|
|
|
|
options: {
|
|
|
|
sourceMap: true,
|
|
|
|
},
|
|
|
|
},
|
2018-07-15 17:17:37 +01:00
|
|
|
{
|
|
|
|
loader: 'sass-loader',
|
|
|
|
options: {
|
|
|
|
includePaths: ['app/javascript'],
|
|
|
|
},
|
|
|
|
},
|
2018-07-14 02:56:41 +01:00
|
|
|
],
|
2017-05-20 16:31:47 +01:00
|
|
|
};
|