pref: update frontend build
Some checks are pending
CI / deploy (push) Waiting to run

This commit is contained in:
thehrz 2024-11-16 11:53:20 +08:00
parent 1bdff1e0ff
commit 5499395d73
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
4 changed files with 499 additions and 1472 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ cmd/authlibskin/authlibskin.exe
server/static/files
cmd/authlibskin/config.toml
out/
stats.html

View File

@ -1,5 +1,5 @@
{
"name": "@xmdhs/authlib-skin",
"name": "authlib-skin",
"private": true,
"version": "0.0.0",
"type": "module",
@ -31,14 +31,13 @@
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-legacy": "^4.1.1",
"@vitejs/plugin-react-swc": "^3.7.1",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.14",
"terser": "^5.36.0",
"rollup-plugin-visualizer": "^5.12.0",
"typescript": "^5.6.3",
"vite": "^4.5.5"
"vite": "^5.4.11"
}
}

1944
frontend/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,28 @@
import { defineConfig } from 'vite'
import { defineConfig, type PluginOption } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { join } from "path";
import legacy from '@vitejs/plugin-legacy'
import { visualizer } from "rollup-plugin-visualizer";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
visualizer() as PluginOption,
react(),
legacy()
],
resolve: {
alias: {
'@': join(__dirname, "src")
},
}
},
build: {
rollupOptions: {
output: {
manualChunks: {
['skinview3d']: ['skinview3d'],
['@mui/material']: ['@mui/material']
},
},
},
},
})