hawksworx.com
hawksworx.com copied to clipboard
Wrong gulp task name for eleventy post
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.
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.