We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
一般项目中存在 public 和 assets,通常都是用来放静态资源的,他们有什么区别?
The text was updated successfully, but these errors were encountered:
public 文件夹下的图片等静态资源,不经过打包工具的处理,直接复制到产物目录下,且使用需要通过绝对路径引用 public/img.png
public/img.png
assets 文件夹下的图片等静态资源,会被当作模块依赖,会经过打包工具的处理,通过相对路径引用
Sorry, something went wrong.
No branches or pull requests
一般项目中存在 public 和 assets,通常都是用来放静态资源的,他们有什么区别?
The text was updated successfully, but these errors were encountered: