|
@@ -5,6 +5,7 @@ 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';
|
|
import monacoEditorPlugin from 'vite-plugin-monaco-editor';
|
|
|
|
+import viteCompression from "vite-plugin-compression"
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
@@ -19,6 +20,9 @@ export default defineConfig({
|
|
},
|
|
},
|
|
// publicPath: 'https://assets.le5lecdn.com/v/monacoeditorwork',
|
|
// publicPath: 'https://assets.le5lecdn.com/v/monacoeditorwork',
|
|
}),
|
|
}),
|
|
|
|
+ viteCompression({
|
|
|
|
+ threshold: 10240, // the unit is Bytes
|
|
|
|
+ }),
|
|
],
|
|
],
|
|
resolve: {
|
|
resolve: {
|
|
alias: {
|
|
alias: {
|