feat: UI use wangeditor for send mail (#157)

This commit is contained in:
Dream Hunter
2024-04-23 12:13:45 +08:00
committed by GitHub
parent 1be94a81e0
commit 58dcdc65f8
5 changed files with 3821 additions and 2738 deletions
+9 -2
View File
@@ -3,7 +3,6 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePWA } from 'vite-plugin-pwa'
import { splitVendorChunkPlugin } from 'vite';
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
@@ -14,12 +13,20 @@ import topLevelAwait from "vite-plugin-top-level-await";
export default defineConfig({
build: {
outDir: './dist',
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('wangeditor')) {
return 'vendor-wangeditor';
}
}
}
}
},
plugins: [
vue(),
wasm(),
topLevelAwait(),
splitVendorChunkPlugin(),
AutoImport({
imports: [
'vue',