koelkastfilosoof
koelkastfilosoof

Reputation: 2242

gulp process terminated with code 1

I'm trying to compile a less file to css with Gulp. But it keeps giving me Process terminated with code 1. errors... Does someone know what this means and why it occurs? And how I should 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'));
});

Upvotes: 4

Views: 4882

Answers (1)

Rokie
Rokie

Reputation: 222

It looks right but you shouldn't use whitespaces in your 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'));
});

Upvotes: 6

Related Questions