-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Issue details
BwSync always starts initialization in the directory of this pwa-tutirial. When i enter to the folder with my new project and i try to init gulp watch i see on the localhost:3000 - Sky-High Airport. How to change this issue?
Steps to reproduce/test case
It worked as usually well, bwSync started in current dir, where i was making my project, untill i installed grunt for watching this project: https://github.com/IncredibleWeb/pwa-tutorial, after instalation bwSync started initialization with page of this project.
Please specify which version of Browsersync, node and npm you're running
- Browsersync [ ]
- Node [ ]
- Npm [ ]
Affected platforms
- linux
- [* ] windows
- OS X
- freebsd
- solaris
- other (please specify which)
Browsersync use-case
- API
- [* ] Gulp
- Grunt
- CLI
If CLI, please paste the entire command below
gulp watch
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
var config = {
src: './src',
}
gulp.task('bwSync', function(){
brwSync.init({
server: {
baseDir: config.src
}
});
});
gulp.task('watch', ['bwSync'], function(){
gulp.watch(config.src+config.html.src, ['html']);
gulp.watch(config.src+config.sass.src_scss, ['scss']);
gulp.watch(config.src+config.sass.src_sass, ['sass']);
gulp.watch(config.src+config.less.src, ['less']);
gulp.watch(config.src+config.js.src, ['js']);
});