Answer the question
In order to leave comments, you need to log in
Compiling sass works through time, what could be the problem?
Hello everyone, I am compiling sass via gulp, here is the code
'use strict';
let gulp = require('gulp');
let sass = require('gulp-sass');
let cleanCSS = require('gulp-clean-css');
let rename = require('gulp-rename');
gulp.task('sass', () => {
return gulp.src('./src/styles/src/main.scss')
.pipe(sass().on('error', sass.logError))
.pipe(cleanCSS())
.pipe(rename({
suffix: '.min'
}))
.pipe(gulp.dest('./src/styles/dist'));
});
gulp.task('sass:watch', () => {
gulp.watch('./src/styles/src/**/*.scss', ['sass']);
});
gulp.task('watch-css', ['sass', 'sass:watch']);
@import "components/navigation";
....
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