Skip to content

After instalation bwSync always starts with this project #14

@dimovich85

Description

@dimovich85

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']);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions