1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/config/webpack/loaders/sass_erb.js
2020-09-22 09:45:18 +02:00

23 lines
435 B
JavaScript

const getStyleRule = require('@rails/webpacker/package/utils/get_style_rule');
module.exports = getStyleRule(/\.(scss|sass)\.erb$/, false, [
{
loader: 'resolve-url-loader',
options: {
sourceMap: true
}
},
{
loader: 'sass-loader',
options: {
sourceMap: true,
sassOptions: {
includePaths: ['app/frontend/src/stylesheets']
}
}
},
{
loader: 'rails-erb-loader'
}
]);