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