webpack关于alias(Webpack about alias)

 还有一种特殊的语法:key 的末尾带一个 $ 字符,表示精确匹配。

alias

~字符开头,Webpack 会将以~符号作为前缀的路径视作依赖模块而去解析

(等待完善)

————————

There is also a special syntax: a $character at the end of the key indicates an exact match.

alias

~At the beginning of the character, webpack will resolve the path prefixed with the ~ symbol as a dependent module

(waiting for improvement)