@@ -31,6 +31,12 @@ In command line:
31
31
npm install --save-dev sass-true
32
32
```
33
33
34
+ True requires Dart Sass v1.45.0 or higher, so install it if you haven't already:
35
+
36
+ ``` bash
37
+ npm install --save-dev sass-embedded # or `sass`
38
+ ```
39
+
34
40
Import in your test directory,
35
41
like any other Sass file:
36
42
@@ -155,11 +161,11 @@ when upgrading from an older version of True.
155
161
npm install --save-dev sass-true
156
162
```
157
163
158
- 2 . [ Optional] Install Dart Sass (` sass ` or ` sass-embedded ` ), if not already
164
+ 2 . [ Optional] Install Dart Sass (` sass-embedded ` or ` sass ` ), if not already
159
165
installed.
160
166
161
167
``` bash
162
- npm install --save-dev sass
168
+ npm install --save-dev sass-embedded # or `sass`
163
169
```
164
170
165
171
3 . Write some Sass tests in ` test/test.scss ` (see above).
@@ -203,8 +209,8 @@ should be usable in the same way: just pass your test runner's `describe` and
203
209
204
210
The ` sass ` option is an optional string name of a Dart Sass implementation
205
211
installed in the current environment (e.g. ` 'embedded-sass' ` or ` 'sass' ` ), or a
206
- Dart Sass implementation instance itself. If none is provided, this defaults to
207
- ` ' sass' ` .
212
+ Dart Sass implementation instance itself. If none is provided, True will attempt
213
+ to detect which implementation is available, starting with ` sass-embedded ` .
208
214
209
215
If True can't parse the CSS output, it'll give you some context lines of CSS as
210
216
part of the error message. This context will likely be helpful in understanding
0 commit comments