Files
v2rayA/gui/package.json
T
Zakk b3f2a4fbd3 fix(gui): ship only the icons the interface uses
lucide-static's stylesheet declares eot, woff2, woff, ttf and a legacy SVG
font for all 2112 icons, so Vite copied every format into web/ and the
embedded binary grew from about 26 MB to 48 MB; the SVG font alone is 20 MB of
glyph outlines. The interface uses 44 icons.

A Vite plugin (gui/build/lucide-subset.mjs) scans src/ for icon names — class
usage, icon props, dialog options and the Buefy pack's internalIcons — subsets
lucide.woff2 to those glyphs with subset-font and serves the result as a
virtual stylesheet with the 8 KB font inlined. A name the font does not have
fails the build naming it, where it used to render an empty box.
2026-09-18 15:28:20 +10:00

48 lines
1.2 KiB
JSON

{
"name": "v2raya",
"version": "0.1.0",
"private": true,
"license": "GPL-3.0",
"scripts": {
"serve": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
"@nuintun/qrcode": "^3.3.0",
"axios": "^0.33.0",
"buefy": "^0.9.22",
"bulma": "^0.9.4",
"clipboard": "^2.0.4",
"dayjs": "^1.10.6",
"js-base64": "^2.5.1",
"lucide-static": "^1.47.0",
"nanoid": "^3.3.18",
"normalize.css": "^8.0.1",
"pace-js": "^1.2.4",
"qrcode": "^1.4.2",
"vue": "^2.7.14",
"vue-i18n": "^8.15.3",
"vue-virtual-scroller": "^1.0.10",
"vuex": "^3.0.1"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vitejs/plugin-vue2": "^2.3.3",
"@vitejs/plugin-vue2-jsx": "^1.1.1",
"@vue/eslint-config-prettier": "^5.0.0",
"autoprefixer": "^10.4.20",
"eslint": "^7.32.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"highlight.js": "^11.4.0",
"prettier": "^2.4.1",
"sass": "^1.19.0",
"subset-font": "2.7.0",
"urijs": "^1.19.11",
"vite": "^4.5.14"
}
}