Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
stdj_h5
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-04 14:39:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
76014145a5184a06e4bb8cfde75b9869740ef829
76014145
1 parent
ed468661
feat: 添加vite-plugin-html插件并配置HTML压缩选项
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
357 additions
and
12 deletions
package.json
pnpm-lock.yaml
vite.config.js
package.json
View file @
7601414
...
...
@@ -42,6 +42,7 @@
"tailwindcss"
:
"^3.4.1"
,
"unplugin-auto-import"
:
"^0.17.5"
,
"unplugin-vue-components"
:
"^0.26.0"
,
"vite"
:
"^5.1.0"
"vite"
:
"^5.1.0"
,
"vite-plugin-html"
:
"^3.2.2"
}
}
...
...
pnpm-lock.yaml
View file @
7601414
...
...
@@ -50,7 +50,7 @@ importers:
devDependencies
:
'
@vitejs/plugin-vue'
:
specifier
:
^5.0.3
version
:
5.2.4(vite@5.4.21(less@4.4.2))(vue@3.5.22)
version
:
5.2.4(vite@5.4.21(less@4.4.2)
(terser@5.44.0)
)(vue@3.5.22)
autoprefixer
:
specifier
:
^10.4.17
version
:
10.4.21(postcss@8.5.6)
...
...
@@ -74,7 +74,10 @@ importers:
version
:
0.26.0(@babel/parser@7.28.5)(rollup@4.52.5)(vue@3.5.22)
vite
:
specifier
:
^5.1.0
version
:
5.4.21(less@4.4.2)
version
:
5.4.21(less@4.4.2)(terser@5.44.0)
vite-plugin-html
:
specifier
:
^3.2.2
version
:
3.2.2(vite@5.4.21(less@4.4.2)(terser@5.44.0))
packages
:
...
...
@@ -255,6 +258,9 @@ packages:
resolution
:
{
integrity
:
sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
}
engines
:
{
node
:
'
>=6.0.0'
}
'
@jridgewell/source-map@0.3.11'
:
resolution
:
{
integrity
:
sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==
}
'
@jridgewell/sourcemap-codec@1.5.5'
:
resolution
:
{
integrity
:
sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==
}
...
...
@@ -277,6 +283,10 @@ packages:
resolution
:
{
integrity
:
sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
}
engines
:
{
node
:
'
>=14'
}
'
@rollup/pluginutils@4.2.1'
:
resolution
:
{
integrity
:
sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==
}
engines
:
{
node
:
'
>=
8.0.0'
}
'
@rollup/pluginutils@5.3.0'
:
resolution
:
{
integrity
:
sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==
}
engines
:
{
node
:
'
>=14.0.0'
}
...
...
@@ -525,6 +535,9 @@ packages:
arg@5.0.2
:
resolution
:
{
integrity
:
sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==
}
async@3.2.6
:
resolution
:
{
integrity
:
sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==
}
asynckit@0.4.0
:
resolution
:
{
integrity
:
sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==
}
...
...
@@ -549,6 +562,9 @@ packages:
resolution
:
{
integrity
:
sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==
}
engines
:
{
node
:
'
>=8'
}
boolbase@1.0.0
:
resolution
:
{
integrity
:
sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==
}
brace-expansion@2.0.2
:
resolution
:
{
integrity
:
sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==
}
...
...
@@ -561,10 +577,16 @@ packages:
engines
:
{
node
:
^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7
}
hasBin
:
true
buffer-from@1.1.2
:
resolution
:
{
integrity
:
sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
}
call-bind-apply-helpers@1.0.2
:
resolution
:
{
integrity
:
sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==
}
engines
:
{
node
:
'
>=
0.4'
}
camel-case@4.1.2
:
resolution
:
{
integrity
:
sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==
}
camelcase-css@2.0.1
:
resolution
:
{
integrity
:
sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
}
engines
:
{
node
:
'
>=
6'
}
...
...
@@ -576,6 +598,10 @@ packages:
resolution
:
{
integrity
:
sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
}
engines
:
{
node
:
'
>=
8.10.0'
}
clean-css@5.3.3
:
resolution
:
{
integrity
:
sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==
}
engines
:
{
node
:
'
>=
10.0'
}
color-convert@2.0.1
:
resolution
:
{
integrity
:
sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
}
engines
:
{
node
:
'
>=7.0.0'
}
...
...
@@ -583,20 +609,37 @@ packages:
color-name@1.1.4
:
resolution
:
{
integrity
:
sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
}
colorette@2.0.20
:
resolution
:
{
integrity
:
sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==
}
combined-stream@1.0.8
:
resolution
:
{
integrity
:
sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
}
engines
:
{
node
:
'
>=
0.8'
}
commander@2.20.3
:
resolution
:
{
integrity
:
sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
}
commander@4.1.1
:
resolution
:
{
integrity
:
sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
}
engines
:
{
node
:
'
>=
6'
}
commander@8.3.0
:
resolution
:
{
integrity
:
sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
}
engines
:
{
node
:
'
>=
12'
}
confbox@0.1.8
:
resolution
:
{
integrity
:
sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==
}
confbox@0.2.2
:
resolution
:
{
integrity
:
sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==
}
connect-history-api-fallback@1.6.0
:
resolution
:
{
integrity
:
sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==
}
engines
:
{
node
:
'
>=0.8'
}
consola@2.15.3
:
resolution
:
{
integrity
:
sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==
}
copy-anything@2.0.6
:
resolution
:
{
integrity
:
sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw==
}
...
...
@@ -604,6 +647,13 @@ packages:
resolution
:
{
integrity
:
sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
}
engines
:
{
node
:
'
>=
8'
}
css-select@4.3.0
:
resolution
:
{
integrity
:
sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==
}
css-what@6.2.2
:
resolution
:
{
integrity
:
sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==
}
engines
:
{
node
:
'
>=
6'
}
cssesc@3.0.0
:
resolution
:
{
integrity
:
sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==
}
engines
:
{
node
:
'
>=4'
}
...
...
@@ -634,9 +684,33 @@ packages:
dlv@1.1.3
:
resolution
:
{
integrity
:
sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==
}
dom-serializer@1.4.1
:
resolution
:
{
integrity
:
sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==
}
dom-walk@0.1.2
:
resolution
:
{
integrity
:
sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==
}
domelementtype@2.3.0
:
resolution
:
{
integrity
:
sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==
}
domhandler@4.3.1
:
resolution
:
{
integrity
:
sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==
}
engines
:
{
node
:
'
>=
4'
}
domutils@2.8.0
:
resolution
:
{
integrity
:
sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==
}
dot-case@3.0.4
:
resolution
:
{
integrity
:
sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==
}
dotenv-expand@8.0.3
:
resolution
:
{
integrity
:
sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg==
}
engines
:
{
node
:
'
>=12'
}
dotenv@16.6.1
:
resolution
:
{
integrity
:
sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==
}
engines
:
{
node
:
'
>=12'
}
dunder-proto@1.0.1
:
resolution
:
{
integrity
:
sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==
}
engines
:
{
node
:
'
>=
0.4'
}
...
...
@@ -644,6 +718,11 @@ packages:
eastasianwidth@0.2.0
:
resolution
:
{
integrity
:
sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
}
ejs@3.1.10
:
resolution
:
{
integrity
:
sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==
}
engines
:
{
node
:
'
>=0.10.0'
}
hasBin
:
true
electron-to-chromium@1.5.244
:
resolution
:
{
integrity
:
sha512-OszpBN7xZX4vWMPJwB9illkN/znA8M36GQqQxi6MNy9axWxhOfJyZZJtSLQCpEFLHP2xK33BiWx9aIuIEXVCcw==
}
...
...
@@ -653,6 +732,9 @@ packages:
emoji-regex@9.2.2
:
resolution
:
{
integrity
:
sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
}
entities@2.2.0
:
resolution
:
{
integrity
:
sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==
}
entities@4.5.0
:
resolution
:
{
integrity
:
sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
}
engines
:
{
node
:
'
>=0.12'
}
...
...
@@ -706,6 +788,9 @@ packages:
fastq@1.19.1
:
resolution
:
{
integrity
:
sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==
}
filelist@1.0.4
:
resolution
:
{
integrity
:
sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==
}
fill-range@7.1.1
:
resolution
:
{
integrity
:
sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
}
engines
:
{
node
:
'
>=8'
}
...
...
@@ -730,6 +815,10 @@ packages:
fraction.js@4.3.7
:
resolution
:
{
integrity
:
sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==
}
fs-extra@10.1.0
:
resolution
:
{
integrity
:
sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
}
engines
:
{
node
:
'
>=12'
}
fsevents@2.3.3
:
resolution
:
{
integrity
:
sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
}
engines
:
{
node
:
^8.16.0 || ^10.6.0 || >=11.0.0
}
...
...
@@ -780,6 +869,15 @@ packages:
resolution
:
{
integrity
:
sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
}
engines
:
{
node
:
'
>=
0.4'
}
he@1.2.0
:
resolution
:
{
integrity
:
sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
}
hasBin
:
true
html-minifier-terser@6.1.0
:
resolution
:
{
integrity
:
sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==
}
engines
:
{
node
:
'
>=12'
}
hasBin
:
true
iconv-lite@0.6.3
:
resolution
:
{
integrity
:
sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
}
engines
:
{
node
:
'
>=0.10.0'
}
...
...
@@ -825,6 +923,11 @@ packages:
jackspeak@3.4.3
:
resolution
:
{
integrity
:
sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==
}
jake@10.9.4
:
resolution
:
{
integrity
:
sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==
}
engines
:
{
node
:
'
>=10'
}
hasBin
:
true
jiti@1.21.7
:
resolution
:
{
integrity
:
sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==
}
hasBin
:
true
...
...
@@ -836,6 +939,9 @@ packages:
js-tokens@9.0.1
:
resolution
:
{
integrity
:
sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==
}
jsonfile@6.2.0
:
resolution
:
{
integrity
:
sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==
}
less@4.4.2
:
resolution
:
{
integrity
:
sha512-j1n1IuTX1VQjIy3tT7cyGbX7nvQOsFLoIqobZv4ttI5axP923gA44zUj6miiA6R5Aoms4sEGVIIcucXUbRI14g==
}
engines
:
{
node
:
'
>=14'
}
...
...
@@ -863,6 +969,9 @@ packages:
lodash@4.17.21
:
resolution
:
{
integrity
:
sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
}
lower-case@2.0.2
:
resolution
:
{
integrity
:
sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==
}
lru-cache@10.4.3
:
resolution
:
{
integrity
:
sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
}
...
...
@@ -904,6 +1013,10 @@ packages:
min-document@2.19.0
:
resolution
:
{
integrity
:
sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==
}
minimatch@5.1.6
:
resolution
:
{
integrity
:
sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==
}
engines
:
{
node
:
'
>=10'
}
minimatch@9.0.5
:
resolution
:
{
integrity
:
sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
}
engines
:
{
node
:
'
>=16
||
14
>=14.17'
}
...
...
@@ -940,6 +1053,12 @@ packages:
engines
:
{
node
:
'
>=
4.4.x'
}
hasBin
:
true
no-case@3.0.4
:
resolution
:
{
integrity
:
sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==
}
node-html-parser@5.4.2
:
resolution
:
{
integrity
:
sha512-RaBPP3+51hPne/OolXxcz89iYvQvKOydaqoePpOgXcrOKZhjVIzmpKZz+Hd/RBO2/zN2q6CNJhQzucVz+u3Jyw==
}
node-releases@2.0.27
:
resolution
:
{
integrity
:
sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==
}
...
...
@@ -951,6 +1070,9 @@ packages:
resolution
:
{
integrity
:
sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==
}
engines
:
{
node
:
'
>=0.10.0'
}
nth-check@2.1.1
:
resolution
:
{
integrity
:
sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==
}
object-assign@4.1.1
:
resolution
:
{
integrity
:
sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
}
engines
:
{
node
:
'
>=0.10.0'
}
...
...
@@ -962,10 +1084,16 @@ packages:
package-json-from-dist@1.0.1
:
resolution
:
{
integrity
:
sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==
}
param-case@3.0.4
:
resolution
:
{
integrity
:
sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==
}
parse-node-version@1.0.1
:
resolution
:
{
integrity
:
sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==
}
engines
:
{
node
:
'
>=
0.10'
}
pascal-case@3.1.2
:
resolution
:
{
integrity
:
sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==
}
path-key@3.1.1
:
resolution
:
{
integrity
:
sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
}
engines
:
{
node
:
'
>=8'
}
...
...
@@ -977,6 +1105,9 @@ packages:
resolution
:
{
integrity
:
sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==
}
engines
:
{
node
:
'
>=16
||
14
>=14.18'
}
pathe@0.2.0
:
resolution
:
{
integrity
:
sha512-sTitTPYnn23esFR3RlqYBWn4c45WGeLcsKzQiUpXJAyfcWkolvlYpV8FLo7JishK946oQwMFUCHXQ9AjGPKExw==
}
pathe@2.0.3
:
resolution
:
{
integrity
:
sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==
}
...
...
@@ -1095,6 +1226,10 @@ packages:
resolution
:
{
integrity
:
sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
}
engines
:
{
node
:
'
>=8.10.0'
}
relateurl@0.2.7
:
resolution
:
{
integrity
:
sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==
}
engines
:
{
node
:
'
>=
0.10'
}
resolve@1.22.11
:
resolution
:
{
integrity
:
sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==
}
engines
:
{
node
:
'
>=
0.4'
}
...
...
@@ -1141,6 +1276,9 @@ packages:
resolution
:
{
integrity
:
sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==
}
engines
:
{
node
:
'
>=0.10.0'
}
source-map-support@0.5.21
:
resolution
:
{
integrity
:
sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
}
source-map@0.6.1
:
resolution
:
{
integrity
:
sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
}
engines
:
{
node
:
'
>=0.10.0'
}
...
...
@@ -1178,6 +1316,11 @@ packages:
engines
:
{
node
:
'
>=14.0.0'
}
hasBin
:
true
terser@5.44.0
:
resolution
:
{
integrity
:
sha512-nIVck8DK+GM/0Frwd+nIhZ84pR/BX7rmXMfYwyg+Sri5oGVE99/E3KvXqpC2xHFxyqXyGHTKBSioxxplrO4I4w==
}
engines
:
{
node
:
'
>=10'
}
hasBin
:
true
thenify-all@1.6.0
:
resolution
:
{
integrity
:
sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==
}
engines
:
{
node
:
'
>=0.8'
}
...
...
@@ -1201,6 +1344,10 @@ packages:
unimport@3.14.6
:
resolution
:
{
integrity
:
sha512-CYvbDaTT04Rh8bmD8jz3WPmHYZRG/NnvYVzwD6V1YAlvvKROlAeNDUBhkBGzNav2RKaeuXvlWYaa1V4Lfi/O0g==
}
universalify@2.0.1
:
resolution
:
{
integrity
:
sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==
}
engines
:
{
node
:
'
>=
10.0.0'
}
unplugin-auto-import@0.17.8
:
resolution
:
{
integrity
:
sha512-CHryj6HzJ+n4ASjzwHruD8arhbdl+UXvhuAIlHDs15Y/IMecG3wrf7FVg4pVH/DIysbq/n0phIjNHAjl7TG7Iw==
}
engines
:
{
node
:
'
>=14'
}
...
...
@@ -1259,6 +1406,11 @@ packages:
videojs-vtt.js@0.15.5
:
resolution
:
{
integrity
:
sha512-yZbBxvA7QMYn15Lr/ZfhhLPrNpI/RmCSCqgIff57GC2gIrV5YfyzLfLyZMj0NnZSAz8syB4N0nHXpZg9MyrMOQ==
}
vite-plugin-html@3.2.2
:
resolution
:
{
integrity
:
sha512-vb9C9kcdzcIo/Oc3CLZVS03dL5pDlOFuhGlZYDCJ840BhWl/0nGeZWf3Qy7NlOayscY4Cm/QRgULCQkEZige5Q==
}
peerDependencies
:
vite
:
'
>=2.0.0'
vite@5.4.21
:
resolution
:
{
integrity
:
sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==
}
engines
:
{
node
:
^18.0.0 || >=20.0.0
}
...
...
@@ -1436,6 +1588,11 @@ snapshots:
'
@jridgewell/resolve-uri@3.1.2'
:
{}
'
@jridgewell/source-map@0.3.11'
:
dependencies
:
'
@jridgewell/gen-mapping'
:
0.3.13
'
@jridgewell/trace-mapping'
:
0.3.31
'
@jridgewell/sourcemap-codec@1.5.5'
:
{}
'
@jridgewell/trace-mapping@0.3.31'
:
...
...
@@ -1458,6 +1615,11 @@ snapshots:
'
@pkgjs/parseargs@0.11.0'
:
optional
:
true
'
@rollup/pluginutils@4.2.1'
:
dependencies
:
estree-walker
:
2.0.2
picomatch
:
2.3.1
'
@rollup/pluginutils@5.3.0(rollup@4.52.5)'
:
dependencies
:
'
@types/estree'
:
1.0.8
...
...
@@ -1576,9 +1738,9 @@ snapshots:
global
:
4.4.0
is-function
:
1.0.2
'
@vitejs/plugin-vue@5.2.4(vite@5.4.21(less@4.4.2))(vue@3.5.22)'
:
'
@vitejs/plugin-vue@5.2.4(vite@5.4.21(less@4.4.2)
(terser@5.44.0)
)(vue@3.5.22)'
:
dependencies
:
vite
:
5.4.21(less@4.4.2)
vite
:
5.4.21(less@4.4.2)
(terser@5.44.0)
vue
:
3.5.22
'
@vue/compiler-core@3.5.22'
:
...
...
@@ -1686,6 +1848,8 @@ snapshots:
arg@5.0.2
:
{}
async@3.2.6
:
{}
asynckit@0.4.0
:
{}
autoprefixer@10.4.21(postcss@8.5.6)
:
...
...
@@ -1712,6 +1876,8 @@ snapshots:
binary-extensions@2.3.0
:
{}
boolbase@1.0.0
:
{}
brace-expansion@2.0.2
:
dependencies
:
balanced-match
:
1.0.2
...
...
@@ -1728,11 +1894,18 @@ snapshots:
node-releases
:
2.0.27
update-browserslist-db
:
1.1.4(browserslist@4.27.0)
buffer-from@1.1.2
:
{}
call-bind-apply-helpers@1.0.2
:
dependencies
:
es-errors
:
1.3.0
function-bind
:
1.1.2
camel-case@4.1.2
:
dependencies
:
pascal-case
:
3.1.2
tslib
:
2.8.1
camelcase-css@2.0.1
:
{}
caniuse-lite@1.0.30001753
:
{}
...
...
@@ -1749,22 +1922,36 @@ snapshots:
optionalDependencies
:
fsevents
:
2.3.3
clean-css@5.3.3
:
dependencies
:
source-map
:
0.6.1
color-convert@2.0.1
:
dependencies
:
color-name
:
1.1.4
color-name@1.1.4
:
{}
colorette@2.0.20
:
{}
combined-stream@1.0.8
:
dependencies
:
delayed-stream
:
1.0.0
commander@2.20.3
:
{}
commander@4.1.1
:
{}
commander@8.3.0
:
{}
confbox@0.1.8
:
{}
confbox@0.2.2
:
{}
connect-history-api-fallback@1.6.0
:
{}
consola@2.15.3
:
{}
copy-anything@2.0.6
:
dependencies
:
is-what
:
3.14.1
...
...
@@ -1775,6 +1962,16 @@ snapshots:
shebang-command
:
2.0.0
which
:
2.0.2
css-select@4.3.0
:
dependencies
:
boolbase
:
1.0.0
css-what
:
6.2.2
domhandler
:
4.3.1
domutils
:
2.8.0
nth-check
:
2.1.1
css-what@6.2.2
:
{}
cssesc@3.0.0
:
{}
csstype@3.1.3
:
{}
...
...
@@ -1791,8 +1988,35 @@ snapshots:
dlv@1.1.3
:
{}
dom-serializer@1.4.1
:
dependencies
:
domelementtype
:
2.3.0
domhandler
:
4.3.1
entities
:
2.2.0
dom-walk@0.1.2
:
{}
domelementtype@2.3.0
:
{}
domhandler@4.3.1
:
dependencies
:
domelementtype
:
2.3.0
domutils@2.8.0
:
dependencies
:
dom-serializer
:
1.4.1
domelementtype
:
2.3.0
domhandler
:
4.3.1
dot-case@3.0.4
:
dependencies
:
no-case
:
3.0.4
tslib
:
2.8.1
dotenv-expand@8.0.3
:
{}
dotenv@16.6.1
:
{}
dunder-proto@1.0.1
:
dependencies
:
call-bind-apply-helpers
:
1.0.2
...
...
@@ -1801,12 +2025,18 @@ snapshots:
eastasianwidth@0.2.0
:
{}
ejs@3.1.10
:
dependencies
:
jake
:
10.9.4
electron-to-chromium@1.5.244
:
{}
emoji-regex@8.0.0
:
{}
emoji-regex@9.2.2
:
{}
entities@2.2.0
:
{}
entities@4.5.0
:
{}
errno@0.1.8
:
...
...
@@ -1879,6 +2109,10 @@ snapshots:
dependencies
:
reusify
:
1.1.0
filelist@1.0.4
:
dependencies
:
minimatch
:
5.1.6
fill-range@7.1.1
:
dependencies
:
to-regex-range
:
5.0.1
...
...
@@ -1900,6 +2134,12 @@ snapshots:
fraction.js@4.3.7
:
{}
fs-extra@10.1.0
:
dependencies
:
graceful-fs
:
4.2.11
jsonfile
:
6.2.0
universalify
:
2.0.1
fsevents@2.3.3
:
optional
:
true
...
...
@@ -1947,8 +2187,7 @@ snapshots:
gopd@1.2.0
:
{}
graceful-fs@4.2.11
:
optional
:
true
graceful-fs@4.2.11
:
{}
has-symbols@1.1.0
:
{}
...
...
@@ -1960,6 +2199,18 @@ snapshots:
dependencies
:
function-bind
:
1.1.2
he@1.2.0
:
{}
html-minifier-terser@6.1.0
:
dependencies
:
camel-case
:
4.1.2
clean-css
:
5.3.3
commander
:
8.3.0
he
:
1.2.0
param-case
:
3.0.4
relateurl
:
0.2.7
terser
:
5.44.0
iconv-lite@0.6.3
:
dependencies
:
safer-buffer
:
2.1.2
...
...
@@ -1998,12 +2249,24 @@ snapshots:
optionalDependencies
:
'
@pkgjs/parseargs'
:
0.11.0
jake@10.9.4
:
dependencies
:
async
:
3.2.6
filelist
:
1.0.4
picocolors
:
1.1.1
jiti@1.21.7
:
{}
js-cookie@3.0.5
:
{}
js-tokens@9.0.1
:
{}
jsonfile@6.2.0
:
dependencies
:
universalify
:
2.0.1
optionalDependencies
:
graceful-fs
:
4.2.11
less@4.4.2
:
dependencies
:
copy-anything
:
2.0.6
...
...
@@ -2037,6 +2300,10 @@ snapshots:
lodash@4.17.21
:
{}
lower-case@2.0.2
:
dependencies
:
tslib
:
2.8.1
lru-cache@10.4.3
:
{}
m3u8-parser@7.2.0
:
...
...
@@ -2077,6 +2344,10 @@ snapshots:
dependencies
:
dom-walk
:
0.1.2
minimatch@5.1.6
:
dependencies
:
brace-expansion
:
2.0.2
minimatch@9.0.5
:
dependencies
:
brace-expansion
:
2.0.2
...
...
@@ -2118,20 +2389,44 @@ snapshots:
sax
:
1.4.2
optional
:
true
no-case@3.0.4
:
dependencies
:
lower-case
:
2.0.2
tslib
:
2.8.1
node-html-parser@5.4.2
:
dependencies
:
css-select
:
4.3.0
he
:
1.2.0
node-releases@2.0.27
:
{}
normalize-path@3.0.0
:
{}
normalize-range@0.1.2
:
{}
nth-check@2.1.1
:
dependencies
:
boolbase
:
1.0.0
object-assign@4.1.1
:
{}
object-hash@3.0.0
:
{}
package-json-from-dist@1.0.1
:
{}
param-case@3.0.4
:
dependencies
:
dot-case
:
3.0.4
tslib
:
2.8.1
parse-node-version@1.0.1
:
{}
pascal-case@3.1.2
:
dependencies
:
no-case
:
3.0.4
tslib
:
2.8.1
path-key@3.1.1
:
{}
path-parse@1.0.7
:
{}
...
...
@@ -2141,6 +2436,8 @@ snapshots:
lru-cache
:
10.4.3
minipass
:
7.1.2
pathe@0.2.0
:
{}
pathe@2.0.3
:
{}
picocolors@1.1.1
:
{}
...
...
@@ -2241,6 +2538,8 @@ snapshots:
dependencies
:
picomatch
:
2.3.1
relateurl@0.2.7
:
{}
resolve@1.22.11
:
dependencies
:
is-core-module
:
2.16.1
...
...
@@ -2302,8 +2601,12 @@ snapshots:
source-map-js@1.2.1
:
{}
source-map@0.6.1
:
optional
:
true
source-map-support@0.5.21
:
dependencies
:
buffer-from
:
1.1.2
source-map
:
0.6.1
source-map@0.6.1
:
{}
string-width@4.2.3
:
dependencies
:
...
...
@@ -2369,6 +2672,13 @@ snapshots:
-
tsx
-
yaml
terser@5.44.0
:
dependencies
:
'
@jridgewell/source-map'
:
0.3.11
acorn
:
8.15.0
commander
:
2.20.3
source-map-support
:
0.5.21
thenify-all@1.6.0
:
dependencies
:
thenify
:
3.3.1
...
...
@@ -2406,6 +2716,8 @@ snapshots:
transitivePeerDependencies
:
-
rollup
universalify@2.0.1
:
{}
unplugin-auto-import@0.17.8(@vueuse/core@10.11.1(vue@3.5.22))(rollup@4.52.5)
:
dependencies
:
'
@antfu/utils'
:
0.7.10
...
...
@@ -2486,7 +2798,23 @@ snapshots:
dependencies
:
global
:
4.4.0
vite@5.4.21(less@4.4.2)
:
vite-plugin-html@3.2.2(vite@5.4.21(less@4.4.2)(terser@5.44.0))
:
dependencies
:
'
@rollup/pluginutils'
:
4.2.1
colorette
:
2.0.20
connect-history-api-fallback
:
1.6.0
consola
:
2.15.3
dotenv
:
16.6.1
dotenv-expand
:
8.0.3
ejs
:
3.1.10
fast-glob
:
3.3.3
fs-extra
:
10.1.0
html-minifier-terser
:
6.1.0
node-html-parser
:
5.4.2
pathe
:
0.2.0
vite
:
5.4.21(less@4.4.2)(terser@5.44.0)
vite@5.4.21(less@4.4.2)(terser@5.44.0)
:
dependencies
:
esbuild
:
0.21.5
postcss
:
8.5.6
...
...
@@ -2494,6 +2822,7 @@ snapshots:
optionalDependencies
:
fsevents
:
2.3.3
less
:
4.4.2
terser
:
5.44.0
vue-demi@0.14.10(vue@3.5.22)
:
dependencies
:
...
...
vite.config.js
View file @
7601414
/*
* @Date: 2025-10-30 10:27:43
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-11-0
3 09:48:52
* @LastEditTime: 2025-11-0
4 14:37:28
* @FilePath: /stdj_h5/vite.config.js
* @Description: 文件描述
*/
...
...
@@ -15,6 +15,7 @@ import tailwindcss from 'tailwindcss'
import
autoprefixer
from
'autoprefixer'
import
postcsspxtoviewport
from
'postcss-px-to-viewport'
import
{
createProxy
}
from
'./build/proxy'
import
{
createHtmlPlugin
}
from
'vite-plugin-html'
;
export
default
({
command
,
mode
})
=>
{
const
root
=
process
.
cwd
();
...
...
@@ -36,7 +37,21 @@ export default ({ command, mode }) => {
Components
({
resolvers
:
[
VantResolver
()],
dts
:
'src/components.d.ts'
})
}),
createHtmlPlugin
({
// 生产环境下的HTML压缩配置
minify
:
{
// 核心:删除HTML中的注释
removeComments
:
true
,
// 可选:其他压缩选项(按需开启)
collapseWhitespace
:
true
,
// 折叠空白字符
removeRedundantAttributes
:
true
,
// 移除冗余属性(如input的type="text")
removeScriptTypeAttributes
:
true
,
// 移除script标签的type="text/javascript"
removeStyleLinkTypeAttributes
:
true
,
// 移除style/link标签的type="text/css"
minifyCSS
:
true
,
// 压缩内嵌CSS
minifyJS
:
true
,
// 压缩内嵌JS
},
}),
],
resolve
:
{
alias
:
{
...
...
Please
register
or
login
to post a comment