diff --git a/gulpfile.js b/gulpfile.js index 236bd88c..c7816a3a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -48,8 +48,7 @@ var config = { }, filesToWatch: [ 'build/css/*.css', - 'build/js/*.js', - 'node_modules/react-s3-fine_uploader/*.js' + 'build/js/*.js' ] }; @@ -73,6 +72,8 @@ gulp.task('js:build', function() { gulp.task('serve', ['browser-sync', 'run-server', 'sass:build', 'sass:watch', 'copy'], function() { bundle(true); + + // opens the browser window with the correct url, which is localhost.com opn('http://www.localhost.com:3000'); }); @@ -95,7 +96,8 @@ gulp.task('browser-sync', function() { files: config.filesToWatch, proxy: 'http://localhost:4000', port: 3000, - open: false + open: false, // does not open the browser-window anymore (handled manually) + ghostMode: false }); });