From 5dbeab3d293e7b2d9918ef4a3267b109ae98c61e Mon Sep 17 00:00:00 2001 From: Taylor Bryant Date: Sat, 11 Nov 2017 02:26:29 -0600 Subject: [PATCH] Make changes to Tailwind stylesheet trigger Jekyll build --- gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 1181c68..e814757 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,8 +1,9 @@ const gulp = require('gulp'); -const child = require('child_process'); const gutil = require('gulp-util'); +const child = require('child_process'); const browserSync = require('browser-sync').create(); const siteRoot = '_site'; +const cssFiles = 'src/style.css'; gulp.task('jekyll', () => { const jekyll = child.spawn('jekyll', ['serve', @@ -50,6 +51,8 @@ gulp.task('serve', () => { baseDir: siteRoot } }); + + gulp.watch(cssFiles); }); gulp.task('default', ['css', 'jekyll', 'serve']); \ No newline at end of file