admin管理员组文章数量:1406308
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
1 Answer
Reset to default 6It 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'));
});
本文标签: javascriptgulp process terminated with code 1Stack Overflow
版权声明:本文标题:javascript - gulp process terminated with code 1 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745005664a2637245.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论