Gulp process completed by code 1

I am trying to compile a css file with Gulp. But he continues to give me Process terminated with code 1. errors ... Does anyone know what this means and why this happens? And how should I fix it?

This is my gulpfile.js:

 var gulp = require('gulp'); var less = require('gulp-less'); gulp.task('compile less simple', function () { gulp.src('box-sizing.less') .pipe(less()) .pipe(gulp.dest('output.min.css')); }); 
+4
source share
1 answer

This looks right, but you should not use spaces in the task name declaration ( https://github.com/gulpjs/gulp/blob/master/docs/API.md#gulptaskname-deps-fn ).

So try:

 var gulp = require('gulp'); var less = require('gulp-less'); gulp.task('compile:less', function () { gulp.src('box-sizing.less') .pipe(less()) .pipe(gulp.dest('output.min.css')); }); 
+6
source

All Articles