From 6a4789bf6c965f4400a509c705104ede0aa9c7ed Mon Sep 17 00:00:00 2001 From: Aleksey Nagovitsyn Date: Sun, 4 Apr 2021 11:27:27 +0500 Subject: [PATCH] Update note about using with ember-cli-sass 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 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 014d5aa..372d4ff 100644 --- a/README.md +++ b/README.md @@ -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: { @@ -68,6 +69,7 @@ Also note you can optionally disable in production! ... sassOptions: { + sourceMap: !envIsProduction, sourceMapEmbed: !envIsProduction }, autoprefixer: {