Skip to content

Commit 85c6464

Browse files
authored
docs: add localCDN precaution tips (#1395)
1 parent c8912e7 commit 85c6464

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/solutions/import-map-local.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,4 @@ VITE_CDN_DOMAIN=https://unpkg.com
240240

241241
1. 本地化CDN会增加构建输出的大小,但会提高应用的可靠性和性能
242242
2. 某些特定格式的CDN URL可能需要在`copy`中进行特别配置
243+
3. 使用本地化 CDN 之后,需要确保 .mjs 后缀文件资源的响应头 content-type 为 `application/javascript`,否则会导致无法正常加载。

0 commit comments

Comments
 (0)