浏览代码

feat:monaco-publichPath

ananzhusen 1 年之前
父节点
当前提交
6b14e3c95d
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      vite.config.ts

+ 4 - 3
vite.config.ts

@@ -14,9 +14,10 @@ export default defineConfig({
     vueJsx(),
     // fileList(),
     monacoEditorPlugin({
-      customDistPath: () => {
-        return 'v/monacoeditorwork';
-      },
+      // customDistPath: () => {
+      //   return 'v/monacoeditorwork';
+      // },
+      publicPath: 'https://assets.le5lecdn.com/v/monacoeditorwork',
     }),
   ],
   resolve: {