hawksworx.com icon indicating copy to clipboard operation
hawksworx.com copied to clipboard

Wrong gulp task name for eleventy post

Open bhenbe opened this issue 5 years ago • 1 comments

The gulp task is wrong on the post "Keeping Sass simple and speedy on Eleventy".

The console action is gulp watch & eleventy --serve but the task in the code example is gulp.task('css', function() {.

The console returns an error message Task never defined: watch.

You need to add gulp.task('watch', function() { gulp.watch('./src/scss/*.scss', ['css']) }); or something like that in the example to work properly.

bhenbe avatar May 05 '19 13:05 bhenbe

Not sure if the blog's gonna be updated (but I hope it does, because the post is reasonably useful!). But it should also be noted that the ampersand method of running multiple commands concurrently does not work on Windows. An elegant cross-platform solution is https://www.npmjs.com/package/concurrently.

SimonEast avatar May 04 '21 05:05 SimonEast