Skip to content

Commit ce2cf3e

Browse files
authored
release: v1.2.1, and replace domain example in doc (#4)
1 parent 20b35b8 commit ce2cf3e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ For example:
103103
defineConfig({
104104
plugins: [
105105
pluginAssetsRetry({
106-
domain: ["https://cdn1.com", "https://cdn2.com", "https://cdn3.com"],
106+
domain: ["cdn1.com", "cdn2.com", "cdn3.com"],
107107
})
108108
],
109109
output: {
110-
assetPrefix: "https://cdn1.com",
110+
assetPrefix: "https://cdn1.com", // or "//cdn1.com"
111111
},
112112
});
113113
```

README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ const defaultOptions = {
101101
defineConfig({
102102
plugins: [
103103
pluginAssetsRetry({
104-
domain: ["https://cdn1.com", "https://cdn2.com", "https://cdn3.com"],
104+
domain: ["cdn1.com", "cdn2.com", "cdn3.com"],
105105
})
106106
],
107107
output: {
108-
assetPrefix: "https://cdn1.com",
108+
assetPrefix: "https://cdn1.com", // 或者 "//cdn1.com"
109109
},
110110
});
111111
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rsbuild/plugin-assets-retry",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"repository": "https://github.com/rspack-contrib/rsbuild-plugin-assets-retry",
55
"license": "MIT",
66
"type": "module",

test/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ test('should work when the first, second cdn are all failed and the third is suc
8787
{
8888
minify: true,
8989
domain: [
90-
'http://a.com/foo-path',
91-
'http://b.com',
92-
`http://localhost:${port}`,
90+
'a.com/foo-path',
91+
'b.com',
92+
`localhost:${port}`,
9393
],
9494
addQuery: true,
9595
onRetry(context) {

0 commit comments

Comments
 (0)