This commit is contained in:
parent
1bdff1e0ff
commit
5499395d73
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@ cmd/authlibskin/authlibskin.exe
|
|||||||
server/static/files
|
server/static/files
|
||||||
cmd/authlibskin/config.toml
|
cmd/authlibskin/config.toml
|
||||||
out/
|
out/
|
||||||
|
stats.html
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@xmdhs/authlib-skin",
|
"name": "authlib-skin",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
@ -31,14 +31,13 @@
|
|||||||
"@types/react-dom": "^18.3.1",
|
"@types/react-dom": "^18.3.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||||
"@typescript-eslint/parser": "^6.21.0",
|
"@typescript-eslint/parser": "^6.21.0",
|
||||||
"@vitejs/plugin-legacy": "^4.1.1",
|
|
||||||
"@vitejs/plugin-react-swc": "^3.7.1",
|
"@vitejs/plugin-react-swc": "^3.7.1",
|
||||||
"eslint": "^8.57.1",
|
"eslint": "^8.57.1",
|
||||||
"eslint-config-prettier": "^9.1.0",
|
"eslint-config-prettier": "^9.1.0",
|
||||||
"eslint-plugin-react-hooks": "^4.6.2",
|
"eslint-plugin-react-hooks": "^4.6.2",
|
||||||
"eslint-plugin-react-refresh": "^0.4.14",
|
"eslint-plugin-react-refresh": "^0.4.14",
|
||||||
"terser": "^5.36.0",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"typescript": "^5.6.3",
|
"typescript": "^5.6.3",
|
||||||
"vite": "^4.5.5"
|
"vite": "^5.4.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
1944
frontend/pnpm-lock.yaml
generated
1944
frontend/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,17 +1,28 @@
|
|||||||
import { defineConfig } from 'vite'
|
import { defineConfig, type PluginOption } from 'vite'
|
||||||
import react from '@vitejs/plugin-react-swc'
|
import react from '@vitejs/plugin-react-swc'
|
||||||
import { join } from "path";
|
import { join } from "path";
|
||||||
import legacy from '@vitejs/plugin-legacy'
|
import { visualizer } from "rollup-plugin-visualizer";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
visualizer() as PluginOption,
|
||||||
|
|
||||||
react(),
|
react(),
|
||||||
legacy()
|
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': join(__dirname, "src")
|
'@': join(__dirname, "src")
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks: {
|
||||||
|
['skinview3d']: ['skinview3d'],
|
||||||
|
['@mui/material']: ['@mui/material']
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user