Answer the question
In order to leave comments, you need to log in
Gulp does not compile SASS to CSS, what should I do?
const gulp = require('gulp'),
sass = require('gulp-sass'),
browsersync = require("browser-sync").create();
function browserSync(done) {
browsersync.init({
server: {
baseDir: "src"
},
port: 3000,
notify: false
});
done();
}
function gulpSass() {
return gulp
.src('src/sass/**/*.sass')
.pipe(sass({ outputStyle: "expanded" }))
.pipe(gulp.dest('src/css'))
.pipe(browsersync.stream())
}
gulp.task('sass', gulpSass);
gulp.task('browser-sync', browserSync);
gulp.task('default', gulp.parallel(browserSync, sass));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question