Browser-sync: Unable to watch multiple files from command line

Created on 12 Apr 2016  路  1Comment  路  Source: BrowserSync/browser-sync

Issue details

Unable to watch multiple files from command line. Same as the now closed #426

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.12.1 ]
  • Node [ 5.7.0 ]
  • Npm [ 3.6.0 ]

    Affected platforms

  • [x ] windows

    Browsersync use-case

  • [ ] API

  • [ ] Gulp
  • [ ] Grunt
  • [x ] CLI

    If CLI, please paste the entire command below

This does not work:

browser-sync start --server --files "**/*.htm, **/*.js, **/*.css, **/*.html"

But this does:

browser-sync start --server --files "**/*.htm"

Most helpful comment

update to 2.12.1, then (separate strings)

browser-sync start --server --files "**/*.htm" "**/*.js" "**/*.css" "**/*.html"

>All comments

update to 2.12.1, then (separate strings)

browser-sync start --server --files "**/*.htm" "**/*.js" "**/*.css" "**/*.html"
Was this page helpful?
0 / 5 - 0 ratings