提交 | 用户 | 时间
|
a57dc2
|
1 |
const CDN = 'https://lib.baomitu.com/' // CDN Homepage: https://cdn.baomitu.com/ |
W |
2 |
const publicPath = process.env.BASE_URL |
|
3 |
|
|
4 |
function splicingPluginUrl(PluginName, version, fileName) { |
|
5 |
return `${CDN}${PluginName}/${version}/${fileName}` |
|
6 |
} |
|
7 |
|
|
8 |
export default { |
|
9 |
beautifierUrl: splicingPluginUrl('js-beautify', '1.13.5', 'beautifier.min.js'), |
|
10 |
// monacoEditorUrl: splicingPluginUrl('monaco-editor', '0.19.3', 'min/vs'), // 使用 monaco-editor CDN 链接 |
|
11 |
monacoEditorUrl: `${publicPath}libs/monaco-editor/vs`, // 使用 monaco-editor 本地代码 |
|
12 |
tinymceUrl: splicingPluginUrl('tinymce', '5.7.0', 'tinymce.min.js') |
|
13 |
} |