So, I just lured my hands with Gulp. I have never worked with Grunt, but it seems that Gulp is a new big thing. Everything seems to be working fine. I successfully compiled SCSS into CSS with the following gulpfile.js:
var gulp = require('gulp');
var sass = require('gulp-sass');
var rename = require('gulp-rename');
gulp.task('sass', function() {
return gulp.src('./scss/*.scss')
.pipe(sass())
.pipe(gulp.dest('./css'));
});
gulp.task('watch', function () {
gulp.watch('scss/**/*.scss', ['sass']);
});
gulp.task('default', ['sass', 'watch']);
Thing: when I run Gulp by default in a terminal, it runs a script, but never ends it. I assume that in order for Gulp to watch my files, it must continue to work.
Standby time with this:
[gulp] Running 'sass'...
[gulp] Finished 'sass' in 8.47 ms
If this is the case - how can I stop it from starting without closing and reopening the terminal? Sorry if this is easy, but I don’t know when it comes to the Terminal.
source
share