Make changes to Tailwind stylesheet trigger Jekyll build

This commit is contained in:
Taylor Bryant 2017-11-11 02:26:29 -06:00
parent d41648bb95
commit 5dbeab3d29
1 changed files with 4 additions and 1 deletions

View File

@ -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']);