-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cdn): change cdn from onmicrosoft to unpkg (#750)
- Loading branch information
1 parent
59eaf03
commit 871463f
Showing
5 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ export default defineConfig(({ command, mode }) => { | |
} | ||
|
||
const vuePluginConfig = {} | ||
const styleLinks = ['https://npm.onmicrosoft.cn/@opentiny/[email protected]/index.css'] | ||
const styleLinks = ['https://unpkg.com/@opentiny/[email protected]/index.css'] | ||
|
||
config.publicDir = false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# prod mode, used by the "build:prod" script | ||
|
||
NODE_ENV=production | ||
VITE_CDN_DOMAIN=https://npm.onmicrosoft.cn | ||
VITE_CDN_DOMAIN=https://unpkg.com | ||
VITE_LOCAL_IMPORT_MAPS=false | ||
VITE_LOCAL_BUNDLE_DEPS=false | ||
#VITE_ORIGIN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"exportName": "ElInput", | ||
"destructuring": true | ||
|
@@ -301,8 +301,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"exportName": "ElButton", | ||
"destructuring": true | ||
|
@@ -623,8 +623,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"destructuring": true, | ||
"exportName": "ElForm" | ||
|
@@ -1081,8 +1081,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"destructuring": true, | ||
"exportName": "ElFormItem" | ||
|
@@ -1432,8 +1432,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"destructuring": true, | ||
"exportName": "ElTable" | ||
|
@@ -2671,8 +2671,8 @@ | |
"npm": { | ||
"package": "element-plus", | ||
"version": "2.4.2", | ||
"script": "https://npm.onmicrosoft.cn/[email protected]/dist/index.full.mjs", | ||
"css": "https://npm.onmicrosoft.cn/[email protected]/dist/index.css", | ||
"script": "https://unpkg.com/[email protected]/dist/index.full.mjs", | ||
"css": "https://unpkg.com/[email protected]/dist/index.css", | ||
"dependencies": null, | ||
"destructuring": true, | ||
"exportName": "ElTableColumn" | ||
|