File tree 4 files changed +875
-2
lines changed
4 files changed +875
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ Vite 插件也可以提供钩子来服务于特定的 Vite 目标。这些钩子
217
217
** 示例:**
218
218
219
219
``` js
220
- const exmaplePlugin = () => {
220
+ const examplePlugin = () => {
221
221
let config
222
222
223
223
return {
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ npm add -D less
200
200
npm add -D stylus
201
201
```
202
202
203
- 如果是用的是单文件组件 ,可以通过 ` <style lang="sass"> ` (或其他预处理器)自动开启。
203
+ 如果使用的是单文件组件 ,可以通过 ` <style lang="sass"> ` (或其他预处理器)自动开启。
204
204
205
205
Vite 为 Sass 和 Less 改进了 ` @import ` 解析,以保证 Vite 别名也能被使用。另外,` url() ` 中的相对路径引用的,与根文件不同目录中的 Sass/Less 文件会自动变基以保证正确性。
206
206
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ footer: MIT Licensed | Copyright © 2019-present Evan You & Vite Contributors
25
25
26
26
<script setup >
27
27
import SponsorsGroup from ' ./.vitepress/theme/SponsorsGroup.vue'
28
+ import fetchReleaseTag from ' ./.vitepress/theme/fetchReleaseTag.js'
29
+
30
+ fetchReleaseTag ();
28
31
</script >
29
32
30
33
<h3 style =" text-align :center ;color :#999 " >Sponsors</h3 >
You can’t perform that action at this time.
0 commit comments