-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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 BUG #2316
Comments
This comment has been minimized.
This comment has been minimized.
I try append the extension, But not yet。
The path did not load properly console:
|
This comment has been minimized.
This comment has been minimized.
Loading SCSS file is normal, |
using url() to rebase the url can solve this |
I also have this bug. I use path alias. <style lang="scss" scoped>
@import "/@/assets/styles/variables.scss";
</style> throw errors
user relative path works. <style lang="scss" scoped>
@import "../../assets/styles/variables.scss";
</style> node: 14.16.0 |
vitejs#2316) (vitejs#2323)" This reverts commit 9499d26.
Still |
@xiaohulu would you open a new issue with a minimal reproduction against vite 2.1.3? Thanks! |
Thanks for the bug fix, I also came across this earlier. 👍 Now, in sass I can use the tilde aliases in eg. However in a Using an at symbol style of alias like I imagine the ~ tilde style alias doesn't work in .vue file because it's considered to be a node_module right? So am I correct in saying then, that as best practice, weŕe better off to just always use at symbole style aliases if they work in both cases ? ( eg. Is there any point to using tilde alias if it doesn't have a consistent behaviour betweenm vue and sass imports? |
Describe the bug
在对于被使用别名引入的scss文件,在被引入的这个文件中所使用别名引入的静态文件没有被替换为正确的路径。
Reproduction
github链接
System Info
vite
version: 2.0.1The text was updated successfully, but these errors were encountered: