Skip to content

Commit

Permalink
Update to latest BrowserSync config
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Apr 15, 2016
1 parent 4d083d3 commit 6365af1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions generators/gulp/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import fs from 'fs';
import parallelize from 'concurrent-transform';
<% } -%>
// BrowserSync is used to live-reload your website
import browserSync from 'browser-sync';
const browserSync = require('browser-sync').create();
const reload = browserSync.reload;
// AutoPrefixer
import autoprefixer from 'autoprefixer';
Expand Down Expand Up @@ -251,12 +251,10 @@ gulp.task('lint', () =>
// 'gulp serve' -- open up your website in your browser and watch for changes
// in all your files and update them when needed
gulp.task('serve', () => {
browserSync({
browserSync.init({
// tunnel: true,
// open: false,
server: {
baseDir: ['.tmp', 'dist']
}
server: ['.tmp', 'dist']
});

// Watch various files for changes and do the needful
Expand Down

0 comments on commit 6365af1

Please sign in to comment.