mirror of
https://github.com/vacp2p/vac.dev-experimental-old.git
synced 2025-02-18 08:17:20 +00:00
Make changes to Tailwind stylesheet trigger Jekyll build
This commit is contained in:
parent
d41648bb95
commit
5dbeab3d29
@ -1,8 +1,9 @@
|
|||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const child = require('child_process');
|
|
||||||
const gutil = require('gulp-util');
|
const gutil = require('gulp-util');
|
||||||
|
const child = require('child_process');
|
||||||
const browserSync = require('browser-sync').create();
|
const browserSync = require('browser-sync').create();
|
||||||
const siteRoot = '_site';
|
const siteRoot = '_site';
|
||||||
|
const cssFiles = 'src/style.css';
|
||||||
|
|
||||||
gulp.task('jekyll', () => {
|
gulp.task('jekyll', () => {
|
||||||
const jekyll = child.spawn('jekyll', ['serve',
|
const jekyll = child.spawn('jekyll', ['serve',
|
||||||
@ -50,6 +51,8 @@ gulp.task('serve', () => {
|
|||||||
baseDir: siteRoot
|
baseDir: siteRoot
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.watch(cssFiles);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('default', ['css', 'jekyll', 'serve']);
|
gulp.task('default', ['css', 'jekyll', 'serve']);
|
Loading…
x
Reference in New Issue
Block a user