File tree Expand file tree Collapse file tree 3 files changed +185
-105
lines changed Expand file tree Collapse file tree 3 files changed +185
-105
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ npm add -D stylus
313
313
314
314
如果使用的是单文件组件,可以通过 ` <style lang="sass"> ` (或其他预处理器)自动开启。
315
315
316
- Vite 为 Sass 和 Less 改进了 ` @import ` 解析,以保证 Vite 别名也能被使用。另外,` url() ` 中的相对路径引用的,与根文件不同目录中的 Sass/Less 文件会自动变基以保证正确性。
316
+ Vite 为 Sass 和 Less 改进了 ` @import ` 解析,以保证 Vite 别名也能被使用。另外,` url() ` 中的相对路径引用的,与根文件不同目录中的 Sass/Less 文件会自动变基以保证正确性。由于 API 限制,不支持重新设置以变量或插值开头的 ` url() ` 引用。
317
317
318
318
由于 Stylus API 限制,` @import ` 别名和 URL 变基不支持 Stylus。
319
319
@@ -364,7 +364,7 @@ document.getElementById('hero-img').src = imgUrl
364
364
``` js twoslash
365
365
import ' vite/client'
366
366
// ---cut---
367
- // 显式加载资源为一个 URL
367
+ // 显式加载资源为一个 URL(根据文件大小自动内联)
368
368
import assetAsURL from ' ./asset.js?url'
369
369
```
370
370
Original file line number Diff line number Diff line change 9
9
"license" : " CC BY-NC-SA 4.0" ,
10
10
"devDependencies" : {
11
11
"@shikijs/vitepress-twoslash" : " ^2.5.0" ,
12
- "@types/express" : " ^5.0.1 " ,
12
+ "@types/express" : " ^5.0.2 " ,
13
13
"feed" : " ^5.0.1" ,
14
14
"vitepress" : " ^1.6.3" ,
15
- "vitepress-plugin-group-icons" : " ^1.5.2 " ,
16
- "vue" : " ^3.5.13 " ,
15
+ "vitepress-plugin-group-icons" : " ^1.5.5 " ,
16
+ "vue" : " ^3.5.14 " ,
17
17
"@types/node" : " ^20.9.2" ,
18
18
"@type-challenges/utils" : " ^0.1.1" ,
19
19
"chalk" : " ^4.1.2" ,
20
20
"gray-matter" : " ^4.0.3" ,
21
21
"lodash" : " ^4.17.21" ,
22
22
"vite" : " ^6.3.0-beta.0" ,
23
23
"yorkie" : " ^2.0.0" ,
24
- "gsap" : " ^3.12.4 "
24
+ "gsap" : " ^3.13.0 "
25
25
},
26
26
"packageManager" :
" [email protected] " ,
27
27
"scripts" : {
You can’t perform that action at this time.
0 commit comments