ananzhusen 1 年之前
父節點
當前提交
a1226b4fc7
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      vite.config.ts

+ 7 - 7
vite.config.ts

@@ -4,7 +4,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx';
 import * as path from 'path';
 import * as fs from 'fs';
 import formidable from 'formidable';
-// import monacoEditorPlugin from 'vite-plugin-monaco-editor';
+import monacoEditorPlugin from 'vite-plugin-monaco-editor';
 
 // https://vitejs.dev/config/
 export default defineConfig({
@@ -13,12 +13,12 @@ export default defineConfig({
     vue(),
     vueJsx(),
     // fileList(),
-    // monacoEditorPlugin({
-    //   // customDistPath: () => {
-    //   //   return 'v/monacoeditorwork';
-    //   // },
-    //   publicPath: 'https://assets.le5lecdn.com/v/monacoeditorwork',
-    // }),
+    monacoEditorPlugin({
+      customDistPath: () => {
+        return 'v/monacoeditorwork';
+      },
+      publicPath: 'https://assets.le5lecdn.com/v/monacoeditorwork',
+    }),
   ],
   resolve: {
     alias: {