diff --git a/gulpfile.js b/gulpfile.js index 2a387ca..50a7160 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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() { return gulp.src( 'build/gui.html' ) @@ -51,7 +61,7 @@ gulp.task( 'vulcanize', [ 'css' ], function() { inline: true, strip: true } ) ) - // clean up some vulcanize ... + // clean up some vulcanize ... .pipe( $.replace( /\n\n/gm, '' ) ) .pipe( $.replace( //gm, '' ) ) .pipe( $.replace( /^