You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the docs, watchOptions.ignored can be any value passed to chokidar. The example shows *.txt for instance. It seems that ignored must be an array since lib/cli/transforms/copyCLIIgnoreToWatchOptions.ts called .concat on it. Indeed, if you try something like ignored: '*.txt' you'll get the error:
/path/to/node_modules/browser-sync/dist/cli/transforms/copyCLIIgnoreToWatchOptions.js:11
return ignored.concat(userIgnore);
^
TypeError: ignored.concat is not a function
Steps to reproduce/test case
Set watchOptions.ignored to '*.txt' and try to run the server.
Please specify which version of Browsersync, node and npm you're running
Browsersync [2.24.4]
Node [8.9.0]
Npm [6.0.1]
Affected platforms
linux
windows
OS X
freebsd
solaris
other (please specify which)
Browsersync use-case
API
Gulp
Grunt
CLI
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
Issue details
Per the docs,
watchOptions.ignored
can be any value passed to chokidar. The example shows*.txt
for instance. It seems thatignored
must be an array since lib/cli/transforms/copyCLIIgnoreToWatchOptions.ts called.concat
on it. Indeed, if you try something likeignored: '*.txt'
you'll get the error:Steps to reproduce/test case
Set
watchOptions.ignored
to'*.txt'
and try to run the server.Please specify which version of Browsersync, node and npm you're running
Affected platforms
Browsersync use-case
for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync
The text was updated successfully, but these errors were encountered: