Skip to content

Commit

Permalink
Ignore node_modules/process/browser.js
Browse files Browse the repository at this point in the history
Another try at fixing the "can't load process" in #100.
From brunch/brunch#1503 (comment).
  • Loading branch information
Chris White committed Dec 27, 2018
1 parent fdecec3 commit 83edc19
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 14 deletions.
21 changes: 14 additions & 7 deletions brunch-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,20 @@ let me = {
return /^static\//.test(path);
},

// Don't ignore _*, or else Brunch won't copy _locales. Instead,
// use __ for partials. Thanks to
// https://stackoverflow.com/a/43426151/2877364 by
// https://stackoverflow.com/users/4028896/johannes-filter
// Answer modified to use the rest of the default ignore from
// https://github.com/brunch/brunch/blob/ab89a016121fc7ba4ebfbe8bdc93a22bcd8d4cda/lib/utils/config-validate.js#L73
ignored: [/\/__/, /vendor\/(node|j?ruby-.+|bundle)\//]
ignored: [
/\/__/,
// Don't ignore _*, or else Brunch won't copy _locales.
// Instead, use __ for partials. Thanks to
// https://stackoverflow.com/a/43426151/2877364 by
// https://stackoverflow.com/users/4028896/johannes-filter

/vendor\/(node|j?ruby-.+|bundle)\//,
// The rest of the default ignore from
// https://github.com/brunch/brunch/blob/ab89a016121fc7ba4ebfbe8bdc93a22bcd8d4cda/lib/utils/config-validate.js#L73

/node_modules\/process\/browser.js/
// https://github.com/brunch/brunch/issues/1503#issuecomment-320902509
]
},

npm: {
Expand Down
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 83edc19

Please sign in to comment.