blob: 945a88da79067c8144c2ed959ef931a419c5cbd2 [file] [log] [blame]
Matteo Scandolofc4b37b2017-02-02 12:18:47 -08001const gulp = require('gulp');
2const browserSync = require('browser-sync');
3const spa = require('browser-sync-spa');
4
5const browserSyncConf = require('../conf/browsersync.conf');
6const browserSyncDistConf = require('../conf/browsersync-dist.conf');
7
8browserSync.use(spa());
9
10gulp.task('browsersync', browserSyncServe);
11gulp.task('browsersync:dist', browserSyncDist);
12
13function browserSyncServe(done) {
14 browserSync.init(browserSyncConf());
15 done();
16}
17
18function browserSyncDist(done) {
19 browserSync.init(browserSyncDistConf());
20 done();
21}