Skip to content

Commit 73009fd

Browse files
docs: yarn pnp + using dart-sass by default (#854)
1 parent d487683 commit 73009fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ npm install sass-loader sass webpack --save-dev
2828
```
2929

3030
`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+
3132
This allows you to control the versions of all your dependencies, and to choose which Sass implementation to use.
3233

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+
3338
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.
3439

3540
Then add the loader to your Webpack configuration. For example:
@@ -388,7 +393,8 @@ module.exports = {
388393
```
389394

390395
> ℹ 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`.
392398
393399
**webpack.config.js**
394400

0 commit comments

Comments
 (0)