forked from JakHuang/form-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JakHuang#104 from Aisen60/hotfix/dependent
fix: 修复因 js-beautify cdn 链接已丢失,导致项目运行报错问题。添加 pluginsConfig.js 文件,统一管理 cdn 路径。
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const CDN = 'https://lib.baomitu.com/' | ||
|
||
function splicingPluginUrl(PluginName, version, fileName) { | ||
return `${CDN}${PluginName}/${version}/${fileName}` | ||
} | ||
|
||
export default { | ||
beautifierUrl: splicingPluginUrl('js-beautify', '1.13.5', 'beautifier.min.js'), | ||
monacoEditorUrl: splicingPluginUrl('monaco-editor', '0.19.3', 'min/vs'), | ||
tinymceUrl: splicingPluginUrl('tinymce', '5.3.2', 'tinymce.min.js') | ||
} |