File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
generators/gulp/templates Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import fs from 'fs';
1818import parallelize from 'concurrent-transform' ;
1919< % } - % >
2020// BrowserSync is used to live-reload your website
21- import browserSync from 'browser-sync' ;
21+ const browserSync = require ( 'browser-sync' ) . create ( ) ;
2222const reload = browserSync . reload ;
2323// AutoPrefixer
2424import autoprefixer from 'autoprefixer' ;
@@ -251,12 +251,10 @@ gulp.task('lint', () =>
251251// 'gulp serve' -- open up your website in your browser and watch for changes
252252// in all your files and update them when needed
253253gulp . task ( 'serve' , ( ) => {
254- browserSync ( {
254+ browserSync . init ( {
255255 // tunnel: true,
256256 // open: false,
257- server : {
258- baseDir : [ '.tmp' , 'dist' ]
259- }
257+ server : [ '.tmp' , 'dist' ]
260258 } ) ;
261259
262260 // Watch various files for changes and do the needful
You can’t perform that action at this time.
0 commit comments