12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
var gulp = require('gulp');
|
|
var browserSync = require('browser-sync').create();
|
|
|
|
gulp.task('default', ['clean', 'scripts'], function() {
|
|
browserSync.init({
|
|
server: {
|
|
baseDir: './'
|
|
}
|
|
});
|
|
|
|
gulp.watch(['./what-input.js', './polyfills/*.js'], ['scripts']).on('change', browserSync.reload);
|
|
});
|