-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alias for /@/
not work properly
#1363
Comments
可以试试 vite-tsconfig-paths,有支持 2.0 的版本 |
This comment has been minimized.
This comment has been minimized.
可以使用[ |
已经提过issue给rollup-plugin了, 目前可以修改为'/@'避免问题 |
这个 issue 跟其他的 alias 问题没有任何关系,只是 alias 不作用于 HTML 里的 url 而已。 2.0 的 alias 是直接替换,所以如果你用了 |
{
alias: {
// not work
'/@/': path.resolve(__dirname, 'foo') + '/',
// works
'/@': path.resolve(__dirname, 'foo'),
},
} |
HTML 文件里面 alilas 不生效 |
@foisonocean 大哥 vite2 alias 在 html 文件可以生效吗 |
@qq31311137 It works for me. |
Describe the bug
Alias for
/@/
not working properly. It works in v1.Reproduction
https://github.com/foisonocean/vite2-alias-bug
System Info
vite
version: 2.0.0-beta.5The text was updated successfully, but these errors were encountered: