Answer the question
In order to leave comments, you need to log in
Error when compiling Sass (SCSS) via gulp?
Good day to all.
Faced a problem.
Working on:
Windows 8.1
Node -v 5.8.0
Npm -v 3.7.3
Gulp -v 3.9.1
My gulpfile.js
"use strict";
var gulp = require("gulp"),
browserSync = require("browser-sync"),
sass = require("gulp-sass");
gulp.task("watch", ["browser-sync", "sass"], function() {
gulp.watch("src/sass/**/*.scss", ["sass"]);
});
gulp.task("browser-sync", function() {
browserSync({
server: {
baseDir: "src"
},
notify: false
});
});
gulp.task("sass", function() {
return gulp.src("src/sass/main.scss")
.pipe(sass().on("error", sass.logError))
.pipe(gulp.dest("src/css"))
.pipe(browserSync.reload({stream: true}))
});
Answer the question
In order to leave comments, you need to log in
Everything compiles correctly, you just make mistakes in the sass code, and it gives an error indicating even where the error is.
Seems to have found the problem.
I work in the latest SublimeText 3
Just when saving through it, I get this error periodically.
I tried to save through notepad ++ I saved
it 20-30 times and no errors.
Maybe someone knows where to "dig" further?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question