Fix issue with Tailwind build not getting triggered by changes to the src folder

This commit is contained in:
Taylor Bryant 2017-11-14 18:50:58 -06:00
parent ef00265370
commit cf9d648fa6
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ const gutil = require('gulp-util');
const child = require('child_process');
const browserSync = require('browser-sync').create();
const siteRoot = '_site';
const cssFiles = 'src/style.css';
const cssFiles = 'src/*';
gulp.task('jekyll', () => {
const jekyll = child.spawn('jekyll', ['serve',
@ -32,7 +32,7 @@ gulp.task('css', function () {
return gulp.src('src/style.css')
.pipe(postcss([
atimport(),
tailwindcss('tailwind-config.js')
tailwindcss('src/tailwind-config.js')
]))
.pipe(autoprefixer({
browsers: ['last 2 versions'],
@ -52,7 +52,7 @@ gulp.task('serve', () => {
}
});
gulp.watch(cssFiles);
gulp.watch(cssFiles, ['css']);
});
gulp.task('default', ['css', 'jekyll', 'serve']);