add browser sync

This commit is contained in:
Doug Fritz 2014-09-09 13:56:13 -07:00
parent df7c8c160f
commit 129596cb56

View File

@ -31,6 +31,16 @@ gulp.task( 'watch', [ 'default' ], function() {
} ); } );
gulp.task( 'serve', [], function() {
browserSync.init( null, {
browser: [ 'google-chrome', 'google chrome' ], // linux uses the -
server: {
baseDir: [ '..' ]
},
startPath: '/dat.gui/'
} );
} );
gulp.task( 'build', [ 'vulcanize' ], function() { gulp.task( 'build', [ 'vulcanize' ], function() {
return gulp.src( 'build/gui.html' ) return gulp.src( 'build/gui.html' )