You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
607 B
31 lines
607 B
6 years ago
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||
8 years ago
|
|
||
|
module.exports = {
|
||
6 years ago
|
test: /\.s?css$/i,
|
||
|
use: [
|
||
|
MiniCssExtractPlugin.loader,
|
||
6 years ago
|
{
|
||
|
loader: 'css-loader',
|
||
|
options: {
|
||
|
sourceMap: true,
|
||
|
importLoaders: 2,
|
||
|
localIdentName: '[name]__[local]___[hash:base64:5]',
|
||
|
},
|
||
|
},
|
||
6 years ago
|
{
|
||
|
loader: 'postcss-loader',
|
||
|
options: {
|
||
|
sourceMap: true,
|
||
|
},
|
||
|
},
|
||
6 years ago
|
{
|
||
|
loader: 'sass-loader',
|
||
|
options: {
|
||
|
includePaths: ['app/javascript'],
|
||
6 years ago
|
implementation: require('sass'),
|
||
6 years ago
|
sourceMap: true,
|
||
6 years ago
|
},
|
||
|
},
|
||
6 years ago
|
],
|
||
8 years ago
|
};
|