Skip to content

Commit

Permalink
feat(all): 添加resolve别名,建立文件目录
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherso1a committed Oct 22, 2019
1 parent 055f5b8 commit cca1f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
umdNamedDefine: true
},
resolve: {
alias:{
'@':path.resolve(__dirname,'src')
},
// Add '.ts' and '.tsx' as a resolvable extension.
extensions: [".ts"]
},
Expand Down

0 comments on commit cca1f0d

Please sign in to comment.