-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hierarchy of directories to look for loaders and modules (#435)
This fixes two longstanding problems. First that starters had to ship with modules/utilities that Gatsby already included and second that installing a starter with NPM 2 often has problems. I did some more research into this and realized the problem is that we don't tell Gatsby to look in `/node_modules/gatsby/node_modules` to look for modules and loaders. This means the starter also has to install them (especially with NPM 2 which doesn't put dependencies of dependencies at top-level of node_modules like NPM 3 does). By telling Webpack to look in Gatsby's node_modules directory as well we should be able to elimintate extra dependencies from starters as well as fix intermittent NPM 2 problems.
- Loading branch information
1 parent
98df2fe
commit a8e152a
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters