Skip to content

Commit

Permalink
Update note about using with ember-cli-sass (#64)
Browse files Browse the repository at this point in the history
If dart-sass is used (which is the default Sass implementation in ember-cli-sass 9+), `sourceMapEmbed: true` will not work without `sourceMap: true` (if `sourceMap` is not true, the sourcemaps will not be generated regardless of `sourceMapEmbed` or `sourceMapContents`).

https://github.com/sass/dart-sass/blob/3d39f22cbff8097c212dd90a507c22dd808c3f19/lib/src/node.dart#L343-L387
  • Loading branch information
nag5000 committed Apr 5, 2021
1 parent 55f183a commit b0140ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -51,6 +51,7 @@ Alternatively, you may use embedded source maps. So we tell `ember-cli-sass` to

```js
sassOptions: {
sourceMap: true,
sourceMapEmbed: true
},
autoprefixer: {
Expand All @@ -68,6 +69,7 @@ Also note you can optionally disable in production!
...

sassOptions: {
sourceMap: !envIsProduction,
sourceMapEmbed: !envIsProduction
},
autoprefixer: {
Expand Down

0 comments on commit b0140ca

Please sign in to comment.