gulp command not return to shell -


i have gulp script, , when run command line, not return shell.

this simple gulp command delete files dist directory

'use strict';  var del = require('del'); var gulp = require('gulp'); gulp.task('clean', function (cb) {     return del(['dist/**/*'], cb); }); 

run command:

gulp clean [13:39:10] using gulpfile gulpfile.js [13:39:10] starting 'clean'... [13:39:11] finished 'clean' after 6.35 ms npm warn package.json abc@0.0.0 no description npm warn package.json abc@0.0.0 no repository field. npm warn package.json abc@0.0.0 no readme data npm warn package.json karma-coverage@0.2.7 no readme data npm warn package.json karma-phantomjs-launcher@0.1.4 no readme data 

it not return shell, have ctrl+c return shell. new gulp, please let me know did wrong, thanks.

try removing callback argument.

gulp.task('clean', function () {     return del(['dist/**/*']); }); 

Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -