Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 235a11a

Browse files
committed
v3.5.5
1 parent a63f5bd commit 235a11a

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ $ npm i @litert/loader@dev --save
4949

5050
### CDN (recommend)
5151

52-
Recommended: https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/loader.min.js, you can also find it here https://cdn.jsdelivr.net/npm/@litert/loader/.
52+
Recommended: https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/loader.min.js, you can also find it here https://cdn.jsdelivr.net/npm/@litert/loader/.
5353

54-
Also available on [unpkg](https://unpkg.com/@litert/[email protected].4/dist/loader.min.js).
54+
Also available on [unpkg](https://unpkg.com/@litert/[email protected].5/dist/loader.min.js).
5555

5656
## Usage
5757

5858
Here's a general how to use it:
5959

6060
```html
61-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/loader.min.js"></script>
61+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/loader.min.js"></script>
6262
```
6363

6464
The code hint needs to be added in "tsconfig.json":
@@ -88,25 +88,25 @@ loader.ready(function() {
8888
Alternatively, use ?path= to load the ingress file directly, the js file extension can be omitted.
8989

9090
```html
91-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?path=../lib/test"></script>
91+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?path=../lib/test"></script>
9292
```
9393

9494
Use the ?cdn= parameter to set the source address of the third library load, default is: https://cdn.jsdelivr.net.
9595

9696
```html
97-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
97+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9898
```
9999

100100
Use the ?map= parameter to set the path to the third-party library, a JSON string, that is valid only with the path parameter.
101101

102102
```html
103-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
103+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
104104
```
105105

106106
Using the ?npm= parameter loader will automatically go to npm to find the relevant library for sniffing loading, JSON string, module name and version number, only valid with the path parameter.
107107

108108
```html
109-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
109+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
110110
```
111111

112112
You can use the fetchFiles method to load network files into memory.

doc/README.sc.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ $ npm i @litert/loader@dev --save
4949

5050
### CDN(推荐)
5151

52-
推荐引用地址:https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js,也可以此处查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
52+
推荐引用地址:https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js,也可以此处查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
5353

54-
同样可使用 [unpkg](https://unpkg.com/@litert/[email protected].4/dist/index.min.js)
54+
同样可使用 [unpkg](https://unpkg.com/@litert/[email protected].5/dist/index.min.js)
5555

5656
## Usage
5757

5858
通常的使用方式:
5959

6060
```html
61-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js"></script>
61+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js"></script>
6262
```
6363

6464
代码提示需要在“tsconfig.json”中添加:
@@ -88,25 +88,25 @@ loader.ready(function() {
8888
或者使用 ?path= 直接加载入口 js 文件,js 后缀可省略。
8989

9090
```html
91-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?path=../lib/test"></script>
91+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?path=../lib/test"></script>
9292
```
9393

9494
使用 ?cdn= 参数设置第三库加载的源地址,默认为:https://cdn.jsdelivr.net。
9595

9696
```html
97-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
97+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9898
```
9999

100100
使用 ?map= 参数设置第三方库的路径,JSON 字符串,仅在含有 path 参数下有效。
101101

102102
```html
103-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
103+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
104104
```
105105

106106
使用 ?npm= 参数 loader 将自动去 npm 查找相关的库进行嗅探加载,JSON 字符串,模块名跟版本号,仅在含有 path 参数下有效。
107107

108108
```html
109-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
109+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
110110
```
111111

112112
你可以使用 fetchFiles 方法加载网络文件到内存。

doc/README.tc.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ $ npm i @litert/loader@dev --save
4949

5050
### CDN(推薦)
5151

52-
推薦引用位址:https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js,也可以此處查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
52+
推薦引用位址:https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js,也可以此處查找:https://cdn.jsdelivr.net/npm/@litert/loader/。
5353

54-
同樣可使用 [unpkg](https://unpkg.com/@litert/[email protected].4/dist/index.min.js)
54+
同樣可使用 [unpkg](https://unpkg.com/@litert/[email protected].5/dist/index.min.js)
5555

5656
## Usage
5757

5858
通常的使用方式:
5959

6060
```html
61-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4s/dist/index.min.js"></script>
61+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js"></script>
6262
```
6363

6464
代碼提示需要在「tsconfig.json」中添加:
@@ -88,25 +88,25 @@ loader.ready(function() {
8888
或者使用 ?path= 直接載入入口 js 檔,js 後綴可省略。
8989

9090
```html
91-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?path=../lib/test"></script>
91+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?path=../lib/test"></script>
9292
```
9393

9494
使用 ?cdn= 參數設置三方庫載入的源地址,預設為:https://cdn.jsdelivr.net。
9595

9696
```html
97-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
97+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?cdn=https://cdn.xxx.xxx"></script>
9898
```
9999

100100
使用 ?map= 參數設置第三方庫的路徑,JSON 字串,僅在含有 path 參數下有效。
101101

102102
```html
103-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
103+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&map={'xxx':'https://xx/npm/index'}"></script>
104104
```
105105

106106
使用 ?npm= 參數 loader 將自動去 npm 查找相關的庫進行嗅探載入,JSON 字串,模組名跟版本號,僅在含有 path 參數下有效。
107107

108108
```html
109-
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].4/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
109+
<script src="https://cdn.jsdelivr.net/npm/@litert/[email protected].5/dist/index.min.js?&path=xxx&npm={'xxx':'1.0.0'}"></script>
110110
```
111111

112112
你可以使用 fetchFiles 方法載入網路檔到記憶體。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@litert/loader",
3-
"version": "3.5.4",
3+
"version": "3.5.5",
44
"description": "Simple browser module loader.",
55
"keywords": [
66
"litert",

0 commit comments

Comments
 (0)