Skip to content

Commit

Permalink
fix(Config): 去掉默认配置中的 resolve.root,修复 Webpack 在 yo 工程中的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhaoju committed Feb 27, 2018
1 parent 6bc8da8 commit 2b20360
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/models/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ var Config = function () {
verbose: false
}), { __ykit__: true })],
resolve: {
root: [],
modules: ['node_modules'],
extensions: ['.js', '.css', '.json', '.string', '.tpl'],
alias: {}
Expand Down
1 change: 0 additions & 1 deletion src/models/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ class Config {
)
],
resolve: {
root: [],
modules: ['node_modules'],
extensions: ['.js', '.css', '.json', '.string', '.tpl'],
alias: {}
Expand Down

0 comments on commit 2b20360

Please sign in to comment.