最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - gulp process terminated with code 1 - Stack Overflow

programmeradmin2浏览0评论

I'm trying to pile 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('pile less simple', function () {
        gulp.src('box-sizing.less')
            .pipe(less())
            .pipe(gulp.dest('output.min.css'));
});

I'm trying to pile 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('pile less simple', function () {
        gulp.src('box-sizing.less')
            .pipe(less())
            .pipe(gulp.dest('output.min.css'));
});
Share Improve this question asked Aug 3, 2015 at 14:31 koelkastfilosoofkoelkastfilosoof 2,2421 gold badge21 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

It looks right but you shouldn't use whitespaces in your task name declaration (https://github./gulpjs/gulp/blob/master/docs/API.md#gulptaskname-deps-fn).

So try:

var gulp = require('gulp');
var less = require('gulp-less');

gulp.task('pile:less', function () {
        gulp.src('box-sizing.less')
            .pipe(less())
            .pipe(gulp.dest('output.min.css'));
});
发布评论

评论列表(0)

  1. 暂无评论