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