feat(web): 增加装饰

This commit is contained in:
v-zhangjc9
2025-07-02 13:06:10 +08:00
parent c46da52942
commit 24ac681cb3
3 changed files with 29 additions and 3 deletions

View File

@@ -1,10 +1,14 @@
import react from '@vitejs/plugin-react-swc'
import {defineConfig, type UserConfig} from 'vite'
import obfuscatorPlugin from 'vite-plugin-javascript-obfuscator'
import packageJson from './package.json'
// https://vite.dev/config/
export default defineConfig(({mode}) => {
let config: UserConfig = {
define: {
__APP_VERSION__: JSON.stringify(packageJson.version) ?? '0.0.0',
},
plugins: [
react(),
obfuscatorPlugin({