// web server gulp.task('serve', function () { browserSync({ server: { baseDir: path.dist } }); });
gulp.task('server', function() { browserSync({ server: { baseDir: './' }, port: process.env.PORT, host: process.env.IP }); });
// Watch changes gulp.task('watch', ['js', 'css', 'html'], function() { browserSync({ server: { baseDir: path.dist } }); gulp.watch(path.app + 'styles/main.css', ['css']); gulp.watch(path.app + 'scripts/**/*.*', ['js']); gulp.watch(path.app + 'index.html', ['html']); });
// Watch gulp.task('watch', baseTasks, () => { browserSync({ notify: false, logPrefix: 'BS', server: ['dist'], https: true, middleware: [browserSyncSpa(/exchange[^-]|^[^.]+$/, indexPath)], }); gulp.watch('./src/index.html', ['html-reload']); gulp.watch(['src/**/*.scss'], ['css-reload']); });
gulp.task('browser-sync', ['nodemon'], function() { // for more browser-sync config options: http://www.browsersync.io/docs/options/ browserSync({ // informs browser-sync to proxy our expressjs app which would run at the following location proxy: 'http://localhost:3000', port: 4000, }); });
gulp.task('browser-sync', function() { browserSync({ port: 8000, server: { baseDir: "./www/" } }); });
gulp.task('browser-sync', function () { browserSync({ proxy: 'http://localhost:3000/', port: 4000, browser: ['chromium-browser'] }); });
gulp.task('browser-sync', () => { browserSync({ notify: false, proxy: 'localhost:3333', files: ['app', 'resources', ], reloadDelay: 1500 }) })
gulp.task("browserSync", function() { browserSync({ server: { baseDir: ["app"] }, }) });
gulp.task('browserSync', function () { browserSync({ notify: false, server: { baseDir: './' } }) });
//Coverage sync gulp.task('t', ['test', 'sloc'], function () { browserSync({ server: { baseDir: "./" }, startPath: "./test/coverage/Chrome%2053.0.2785%20(Mac%20OS%20X%2010.11.4)/index.html" }); });
// Browser Sync gulp.task('b', ['build', 'sloc'], function () { browserSync({ server: { baseDir: "./" }, startPath: "/public_html/html/hello.html" }); });
/** * Running webserver */ gulp.task('webserver', function () { browserSync(config); });
/** * Running livereload server */ gulp.task('server', function() { browserSync({ server: { baseDir: 'app' } }); });
gulp.task('browser-sync', function () { browserSync({ server: "./public" }) });