1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/config/webpack/loaders/sass_erb.js

23 lines
430 B
JavaScript
Raw Normal View History

2022-03-14 13:59:57 +01:00
const getStyleRule = require('shakapacker/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'
}
]);