Comments (4)
为了帮助同学理解,你可以看到:
https://cn.vitejs.dev/guide/assets.html#the-public-directory
在文档这里:
目录默认是
<root>/public
,但可以通过publicDir
选项来配置。
这里就用到了这个 <root>
,他是一个符号,帮助你阅读文档时快速理解文件的相对定位位置。
from docs-cn.
Hi,同学你好。很抱歉给你的理解造成了疑惑,我们会立刻优化这个地方的翻译。
这里的英语原文是:
You will see it referenced as <root>
throughout the rest of the docs.
妥当的翻译应是:
你将会在接下来的文档中看到根目录以 <root>
代称。
我们会发起一个更改的 Pull Request 指向这个 issue。
from docs-cn.
温馨提示另外一个小 Tip :
可能同学你还不太知道,在 Github 的 Markdown 编辑器中直接输入 <root>
这六个字符而不将它用反引号扩起来,会被识别为一个 HTML 标签,将无法正常显示出来
以后一定要记得编辑完 issue 后点一下 Write 旁边的 Preview 看看效果哦!
from docs-cn.
明白了,谢谢
from docs-cn.
Related Issues (20)
- 关于文档对vite.config.js的define描述不够清晰 HOT 1
- 配置 - 构建选项 404
- 如何启动生产模式下的esbuild HOT 1
- Repeated hash
- editLink is 404
- 在初始安装依赖时,无法安装esbuild依赖 HOT 1
- 更新 VitePress 版本依赖 HOT 2
- 现在的 vite 4.0 下载下来依赖的提示是错误的 HOT 1
- 更换许可证 HOT 2
- 如果url上包含index.html则会优先匹配public文件内的index.html的边界情况建议
- 这是啥?单纯疑惑 HOT 2
- 中文官网侧栏导航显示错误 HOT 1
- 从 英文 ssr页面切换语言到简体中文报错 HOT 1
- vite
- vite 怎么再react 中用less的 css module?并且把 xxx.module.less,中的.module文件名去掉,直接xxx.less识别 HOT 1
- 打包的时候能排除指定的文件或者文件夹吗 HOT 1
- The usage of new URL() in this context is incorrect. HOT 1
- 【dev】i got an 404 errors that main.ts is not found but i was not found in the source HOT 3
- support electron HOT 1
- 官方插件标题跳转链接404 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs-cn.