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
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