package/rules/sass.js in jetpacker-0.4.2 vs package/rules/sass.js in jetpacker-0.5.0
- old
+ new
@@ -1,8 +1,14 @@
const getStyleRule = require('../utils/get_style_rule')
+const { additional_paths: includePaths } = require('../config')
module.exports = getStyleRule(/\.(scss|sass)(\.erb)?$/i, false, [
{
loader: 'sass-loader',
- options: { sourceMap: true }
+ options: {
+ sourceMap: true,
+ sassOptions: {
+ includePaths
+ }
+ }
}
])