Pass Parameter to Gulp Task
Normally we can run gulp task from console via something like gulp mytask. Is there anyway that I can pass in parameter to gulp task? If possible, please show example how it can be done. 12 Answers 12
Normally we can run gulp task from console via something like gulp mytask. Is there anyway that I can pass in parameter to gulp task? If possible, please show example how it can be done. 12 Answers 12
I have the following gulpfile.js, which I’m executing via the command line gulp message: var gulp = require(‘gulp’); gulp.task(‘message’, function() { console.log(“HTTP Server Started”); }); I’m getting the following error message: [14:14:41] Using gulpfile ~\Documents\node\first\gulpfile.js [14:14:41] Starting ‘message’… HTTP Server Started [14:14:41] The following tasks did not complete: message [14:14:41] Did you forget to signal … Read more