I use browser-sync (https://github.com/shakyShane/browser-sync) in my gulp file for development purposes. I want to use html5mode within my angular app. For that server needs to
In version 2.23.0 you can use single option, like this:
single
gulp.task('serve', function () { browserSync.init(null, { server: { baseDir: [APP_PATH] }, single: true }); // watch only for app specific codes; ... });
Reference: https://browsersync.io/docs/options#option-single