|
@@ -4,11 +4,21 @@ import vueJsx from '@vitejs/plugin-vue-jsx';
|
|
import * as path from 'path';
|
|
import * as path from 'path';
|
|
import * as fs from 'fs';
|
|
import * as fs from 'fs';
|
|
import formidable from 'formidable';
|
|
import formidable from 'formidable';
|
|
|
|
+import monacoEditorPlugin from 'vite-plugin-monaco-editor';
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
// assetsInclude: ['**/*.glb'],
|
|
// assetsInclude: ['**/*.glb'],
|
|
- plugins: [vue(), vueJsx(), fileList()],
|
|
|
|
|
|
+ plugins: [
|
|
|
|
+ vue(),
|
|
|
|
+ vueJsx(),
|
|
|
|
+ fileList(),
|
|
|
|
+ monacoEditorPlugin({
|
|
|
|
+ customDistPath: () => {
|
|
|
|
+ return 'v/monacoeditorwork';
|
|
|
|
+ },
|
|
|
|
+ }),
|
|
|
|
+ ],
|
|
resolve: {
|
|
resolve: {
|
|
alias: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src/'),
|
|
'@': path.resolve(__dirname, './src/'),
|