Skip to content

Commit

Permalink
webpacker.yml: correctly ignore node_modules (#1863)
Browse files Browse the repository at this point in the history
/node_modules/ should be parsed to a js regex, however js-yaml parses it as a
string. As a result, files under the /node_modules/ directory get watched. This
commit switches to using an anymatch pattern which works as expected.
  • Loading branch information
greenonion authored and gauravtiwari committed Jan 3, 2019
1 parent 2b52673 commit 1a561c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/config/webpacker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ development:
headers:
'Access-Control-Allow-Origin': '*'
watch_options:
ignored: /node_modules/
ignored: '**/node_modules/**'


test:
Expand Down

0 comments on commit 1a561c5

Please sign in to comment.