-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for sass-loader 8.0.0 #654
Comments
this does not belong to #645, as sass-loader 8 is still for webpack 4, not for webpack 5. |
sass-loader 8 uses sassOptions object as you provided already in webpack config. To use it with webpack-encore 0.28.0 you may use the following dirty hack in webpack-encore/lib/loaders/sass.js. |
My current workaround for this is editing .enableSassLoader((options) => {
options.sourceMap = true;
options.sassOptions = {
outputStyle: options.outputStyle,
sourceComments: !Encore.isProduction(),
};
delete options.outputStyle;
}, {}) |
Fixed in #758 |
OS : WSL Ubuntu 18.04
webpack-encore : 0.28.0
Since I upgraded my
package.json
, sass-loader was updated to 8.0.0, and I get the following warning runningyarn encore dev
:My
webpack.config.js
:Could be integrated to PR #645
The text was updated successfully, but these errors were encountered: