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
> Compile Sass to CSS using [node-sass](https://github.com/sass/node-sass)
5
+
> Compile Sass to CSS using [Dart Sass][] or [Node Sass][].
6
6
7
-
*The issue tracker is disabled because of continuous abuse. Use [Stack Overflow](https://stackoverflow.com/questions/tagged/node-sass) for support questions. Issues with the output should be reported on the libsass [issue tracker](https://github.com/hcatlin/libsass/issues). Install issues should be reported on the node-sass [issue tracker](https://github.com/sass/node-sass/issues). Learn how [semver works](https://nodesource.com/blog/semver-tilde-and-caret) before opening a PR updating node-sass.*
7
+
[Dart Sass]: http://sass-lang.com/dart-sass
8
+
[Node Sass]: https://github.com/sass/node-sass
8
9
9
-
This task uses [libsass](http://libsass.org), which is a Sass compiler in C++. It's a lot faster than the original Ruby compiler and [fully compatible](http://sass-compatibility.github.io/).
10
+
Before filing an issue with this repository, please consider:
11
+
12
+
* Asking support questions on Use [Stack Overflow][].
13
+
14
+
* Reporting issues with the output on the [Dart Sass][Dart Sass issues] or [LibSass][LibSass issues] issue trackers, depending which implementation you're using.
15
+
16
+
* Reporting installation issues on the [Dart Sass][Dart Sass issues] or [Node Sass][Node Sass issues] issue trackers, depending on which implementation you're using.
You can choose whether to use [Dart Sass][] or [Node Sass][] by passing the module to the `implementation` option. One implementation or the other *must* be passed.
60
+
61
+
Note that when using Dart Sass, **synchronous compilation is twice as fast as asynchronous compilation** by default, due to the overhead of asynchronous callbacks. To avoid this overhead, you can use the [`fibers`](https://www.npmjs.com/package/fibers) package to call asynchronous importers from the synchronous code path. To enable this, pass the `Fiber` class to the `fiber` option:
62
+
63
+
```js
64
+
constFiber=require('fibers');
65
+
constsass=require('node-sass');
66
+
26
67
require('load-grunt-tasks')(grunt);
27
68
28
69
grunt.initConfig({
29
70
sass: {
30
71
options: {
72
+
implementation: sass,
73
+
fiber: Fiber,
31
74
sourceMap:true
32
75
},
33
76
dist: {
@@ -46,7 +89,7 @@ Files starting with `_` are ignored to match the expected [Sass partial behaviou
46
89
47
90
## Options
48
91
49
-
See the `node-sass`[options](https://github.com/sass/node-sass#options), except for `file`, `outFile`, `success`, `error`.
92
+
See the Node Sass[options](https://github.com/sass/node-sass#options), except for `file`, `outFile`, `success`, `error`.
50
93
51
94
The default value for the `precision` option is `10`, so you don't have to change it when using Bootstrap.
0 commit comments