feat: 退出\更新信息

This commit is contained in:
秋水浮尘
2023-11-20 00:17:52 +08:00
parent 3218fccf7c
commit 4ff59f5eda
11 changed files with 217 additions and 98 deletions

View File

@@ -1,11 +1,22 @@
import react from '@vitejs/plugin-react'
import { defineConfig, loadEnv } from 'vite'
const path = require('path')
// https://vitejs.dev/config/
export default ({ mode }) => {
const env = loadEnv(mode, process.cwd())
return defineConfig({
build: {
rollupOptions: {
output: {
manualChunks: {
vendor: ['react', 'react-dom', 'react-router-dom'],
common: ['axios', 'lodash', 'pubsub-js', 'wangeditor']
}
}
}
},
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),