Skip to content

Commit

Permalink
fix: fix yarn global install (fix #102)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 18, 2018
1 parent 96f04e8 commit 1130318
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webpack/createBaseConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ module.exports = function createBaseConfig ({
.modules
// prioritize our own
.add(path.resolve(__dirname, '../../node_modules'))
.add(path.resolve(__dirname, '../../../'))
.add('node_modules')

config.resolveLoader
.set('symlinks', true)
.modules
// prioritize our own
.add(path.resolve(__dirname, '../../node_modules'))
.add(path.resolve(__dirname, '../../../'))
.add('node_modules')

config.module
Expand Down

0 comments on commit 1130318

Please sign in to comment.