Gulp文件出错:"以下任务未完成:其他"在Vue.js项目上

时间:2016-12-07 05:29:05

标签: javascript node.js gulp vue.js

我正在使用Karma,Webpack和AWS的Vue.js项目。一切都工作正常,但突然间,当我跑步" npm run build"克隆了回购并执行" npm install"。

这是我的gulpfile.js:

const gulp = require('gulp');
const HubRegistry = require('gulp-hub');
const browserSync = require('browser-sync');

const conf = require('./conf/gulp.conf');

// Load some files into the registry
const hub = new HubRegistry([conf.path.tasks('*.js')]);

// Tell gulp to use the tasks just loaded
gulp.registry(hub);

gulp.task('build', gulp.series(gulp.parallel('other', 'webpack:dist')));
gulp.task('watch', watch);
gulp.task('test', gulp.series('karma:single-run'));
gulp.task('test:auto', gulp.series('karma:auto-run'));
gulp.task('serve', gulp.series('webpack:watch', 'watch', 'browsersync'));
gulp.task('serve:dist', gulp.series('default', 'browsersync:dist'));
gulp.task('default', gulp.series('clean', 'build'));

function reloadBrowserSync(cb) {
  browserSync.reload();
  cb();
}

function watch(done) {
  gulp.watch(conf.path.tmp('index.html'), reloadBrowserSync);
  done();
}

这是错误:

'webpack:dist' errored after 118 ms
 ....
'build' errored after 120 ms
'default' errored after 136 ms
 The following tasks did not complete: other
 Did you forget to signal async completion?

不确定为什么突然间一切都破了?

0 个答案:

没有答案