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
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,15 @@
1
1
# Contributing to Gulp Sass
2
2
3
-
Gulp Sass is a very light-weight [Gulp](https://github.com/gulpjs/gulp) wrapper for [`node-sass`](https://github.com/sass/node-sass), which in turn is a Node binding for [`libsass`](https://github.com/sass/libsass), which in turn is a port of [`Sass`](https://github.com/sass/sass).
3
+
`gulp-sass` is a very light-weight wrapper around either [Dart Sass][] or [Node Sass][] (which in turn is a Node binding for [LibSass][]. All of these are implementations of the [Sass][] language.
4
+
5
+
[Dart Sass]: http://sass-lang.com/dart-sass
6
+
[Node Sass]: https://github.com/sass/node-sass
7
+
[LibSass]: https://sass-lang.com/libsass
8
+
[Sass]: https://sass-lang.com
4
9
5
10
## Submitting Issues
6
11
7
-
* Before creating a new issue, perform a [cursory search](https://github.com/issues?utf8=%E2%9C%93&q=repo%3Adlmanning%2Fgulp-sass+repo%3Asass%2Fnode-sass+repo%3Asass%2Flibsass+repo%3Asass%2Fsass+repo%3Asass-eyeglass%2Feyeglass) in the Gulp Sass, Node Sass, Libsass, and main Sass repos to see if a similar issue has already been submitted. Please also refer to our [Common Issues and Their Fixes](https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes) page for some basic troubleshooting.
12
+
* Before creating a new issue, perform a [cursory search](https://github.com/issues?utf8=%E2%9C%93&q=repo%3Adlmanning%2Fgulp-sass+repo%3Asass%2Fdart-sass+repo%3Asass%2Fnode-sass+repo%3Asass%2Flibsass+repo%3Asass%2Fsass+repo%3Asass-eyeglass%2Feyeglass) in the Gulp Sass, Dart Sass, Node Sass, Libsass, and main Sass repos to see if a similar issue has already been submitted. Please also refer to our [Common Issues and Their Fixes](https://github.com/dlmanning/gulp-sass/wiki/Common-Issues-and-Their-Fixes) page for some basic troubleshooting.
8
13
* You can create an issue [here](https://github.com/dlmanning/gulp-sass/issues). Please include as many details as possible in your report.
9
14
* Issue titles should be descriptive, explaining at the high level what it is about.
10
15
* Please include the version of `gulp-sass`, Node, and NPM you are using, as well as what operating system you are having a problem on.
Copy file name to clipboardexpand all lines: README.md
+15-7
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Only [Active LTS and Current releases][1] are supported.
13
13
# Install
14
14
15
15
```
16
-
npm install gulp-sass --save-dev
16
+
npm install sass gulp-sass --save-dev
17
17
```
18
18
19
19
# Basic Usage
@@ -24,7 +24,7 @@ Something like this will compile your Sass files:
24
24
'use strict';
25
25
26
26
var gulp =require('gulp');
27
-
var sass =require('gulp-sass');
27
+
var sass =require('gulp-sass')(require('sass'));
28
28
29
29
gulp.task('sass', function () {
30
30
returngulp.src('./sass/**/*.scss')
@@ -43,7 +43,7 @@ You can also compile synchronously, doing something like this:
43
43
'use strict';
44
44
45
45
var gulp =require('gulp');
46
-
var sass =require('gulp-sass');
46
+
var sass =require('gulp-sass')(require('sass'));
47
47
48
48
gulp.task('sass', function () {
49
49
returngulp.src('./sass/**/*.scss')
@@ -58,7 +58,12 @@ gulp.task('sass:watch', function () {
58
58
59
59
## Options
60
60
61
-
Pass in options just like you would for [`node-sass`](https://github.com/sass/node-sass#options); they will be passed along just as if you were using `node-sass`. Except for the `data` option which is used by gulp-sass internally. Using the `file` option is also unsupported and results in undefined behaviour that may change without notice.
61
+
`gulp-sass` supports both [Dart Sass][] and [Node Sass][]. You choose which one to use by writing either `require('gulp-sass')(require('sass'))` for Dart Sass or `require('gulp-sass')(require('node-sass'))` for Node Sass. One or the other must be passed in.
62
+
63
+
[Dart Sass]: http://sass-lang.com/dart-sass
64
+
[Node Sass]: https://github.com/sass/node-sass
65
+
66
+
Pass in options just like you would for [Node Sass](https://github.com/sass/node-sass#options); they will be passed along just as if you were using Node Sass. Except for the `data` option which is used by gulp-sass internally. Using the `file` option is also unsupported and results in undefined behaviour that may change without notice.
62
67
63
68
For example:
64
69
@@ -111,10 +116,13 @@ gulp.task('sass', function () {
111
116
112
117
# Issues
113
118
114
-
`gulp-sass` is a very light-weight wrapper around [`node-sass`](https://github.com/sass/node-sass), which in turn is a Node binding for [`libsass`](https://github.com/sass/libsass), which in turn is a port of [`Sass`](https://github.com/sass/sass). Because of this, the issue you're having likely isn't a `gulp-sass` issue, but an issue with one of those three projects.
119
+
`gulp-sass` is a very light-weight wrapper around either [Dart Sass][] or [Node Sass][] (which in turn is a Node binding for [LibSass][]. Because of this, the issue you're having likely isn't a `gulp-sass` issue, but an issue with one those projects or with [Sass][] as a whole.
120
+
121
+
[LibSass]: https://sass-lang.com/libsass
122
+
[Sass]: https://sass-lang.com
115
123
116
-
If you have a feature request/question how Sass works/concerns on how your Sass gets compiled/errors in your compiling, it's likely a `libsass`or `Sass` issue and you should file your issue with one of those projects.
124
+
If you have a feature request/question how Sass works/concerns on how your Sass gets compiled/errors in your compiling, it's likely a Dart Sass or LibSass issue and you should file your issue with one of those projects.
117
125
118
-
If you're having problems with the options you're passing in, it's likely a `node-sass`or `libsass` issue and you should file your issue with one of those projects.
126
+
If you're having problems with the options you're passing in, it's likely a Dart Sass or Node Sass issue and you should file your issue with one of those projects.
119
127
120
128
We may, in the course of resolving issues, direct you to one of these other projects. If we do so, please follow up by searching that project's issue queue (both open and closed) for your problem and, if it doesn't exist, filing an issue with them.
0 commit comments