mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
add browser sync
This commit is contained in:
parent
df7c8c160f
commit
129596cb56
10
gulpfile.js
10
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() {
|
gulp.task( 'build', [ 'vulcanize' ], function() {
|
||||||
|
|
||||||
return gulp.src( 'build/gui.html' )
|
return gulp.src( 'build/gui.html' )
|
||||||
|
Loading…
Reference in New Issue
Block a user