test/dummy/node_modules/@rails/webpacker/package/rules/sass.js in disco_app-0.18.0 vs test/dummy/node_modules/@rails/webpacker/package/rules/sass.js in disco_app-0.18.1
- old
+ new
@@ -1,8 +1,17 @@
+/* eslint global-require: 0 */
+
const getStyleRule = require('../utils/get_style_rule')
+const { additional_paths: includePaths } = require('../config')
-module.exports = getStyleRule(/\.(scss|sass)$/i, false, [
+module.exports = getStyleRule(/\.(scss|sass)(\.erb)?$/i, false, [
{
loader: 'sass-loader',
- options: { sourceMap: true }
+ options: {
+ sourceMap: true,
+ implementation: require('sass'),
+ sassOptions: {
+ includePaths
+ }
+ }
}
])