15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
var gulp = require('gulp');
|
|
var watch = require('gulp-watch');
|
|
var browserSync = require('browser-sync').create();
|
|
|
|
gulp.task('serve', function() {
|
|
browserSync.init({
|
|
server: '../',
|
|
startPath: 'benchmark'
|
|
});
|
|
|
|
gulp.watch(['*.html', 'src/*.js']).on('change', browserSync.reload);
|
|
});
|
|
|
|
gulp.task('default', ['serve']);
|