You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`sass-loader` requires you to install either [Dart Sass](https://github.com/sass/dart-sass) on your own (more documentation can be found below) or [Node Sass](https://github.com/sass/node-sass).
31
+
31
32
This allows you to control the versions of all your dependencies, and to choose which Sass implementation to use.
32
33
34
+
> ℹ️ We recommend using [Dart Sass](https://github.com/sass/dart-sass).
35
+
36
+
> ⚠ [Node Sass](https://github.com/sass/node-sass) does not work with [Yarn PnP](https://classic.yarnpkg.com/en/docs/pnp/) feature.
37
+
33
38
Chain the `sass-loader` with the [css-loader](https://github.com/webpack-contrib/css-loader) and the [style-loader](https://github.com/webpack-contrib/style-loader) to immediately apply all styles to the DOM or the [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) to extract it into a separate file.
34
39
35
40
Then add the loader to your Webpack configuration. For example:
@@ -388,7 +393,8 @@ module.exports = {
388
393
```
389
394
390
395
> ℹ In some rare cases `node-sass` can output invalid source maps (it is a `node-sass` bug).
391
-
> In order to avoid this, you can try to update `node-sass` to latest version or you can try to set within `sassOptions` the `outputStyle` option to `compressed`.
396
+
397
+
> > In order to avoid this, you can try to update `node-sass` to latest version or you can try to set within `sassOptions` the `outputStyle` option to `compressed`.
0 commit comments