mirror of
https://github.com/taigrr/skyline
synced 2025-01-18 04:33:13 -08:00
19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
const gulp = require('gulp')
|
|
const bs = require('browser-sync').create()
|
|
|
|
gulp.task('browser-sync', function() {
|
|
bs.init({
|
|
server: {
|
|
baseDir: "./"
|
|
}
|
|
})
|
|
})
|
|
|
|
gulp.task('watch', ['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', ['browser-sync', 'watch']);
|