mirror of
https://github.com/taigrr/skyline
synced 2025-01-18 04:33:13 -08:00
19 lines
459 B
JavaScript
19 lines
459 B
JavaScript
const gulp = require('gulp')
|
|
const bs = require('browser-sync').create()
|
|
|
|
gulp.task('browser-sync', function() {
|
|
bs.init({
|
|
server: {
|
|
baseDir: "./"
|
|
}
|
|
})
|
|
})
|
|
|
|
gulp.task('watch', gulp.series('browser-sync', function() {
|
|
gulp.watch("css/*.css").on('change', bs.reload)
|
|
gulp.watch("js/*.js").on('change', bs.reload)
|
|
gulp.watch("*.html").on('change', bs.reload)
|
|
}))
|
|
|
|
gulp.task('auto', gulp.series('browser-sync', 'watch'));
|