Skip to content

Commit cb8efa5

Browse files
committed
Upgrade to Vite 6
Use NodeJs 22 Use pnpm for package manager
1 parent 224ee34 commit cb8efa5

6 files changed

Lines changed: 854 additions & 887 deletions

File tree

src/UnityWebBrowser.Pages/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ This node project contains the files for building the HTML pages that are includ
66

77
```
88
Node
9-
npm
9+
pnpm
1010
```
1111

12-
1. Run `npm install` in the root of the pages project
12+
1. Run `pnpm install` in the root of the pages project
1313

14-
2. Run `npm run start` to preview the site in your local browser.
14+
2. Run `pnpm run start` to preview the site in your local browser.
1515

16-
3. Run `npm run build` to build the pages. They will be placed in the `dist/` folder. The UWB CEF engine project will automatically included them as an embedded resources.
16+
3. Run `pnpm run build` to build the pages. They will be placed in the `dist/` folder. The UWB CEF engine project will automatically included them as an embedded resources.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang=""><head><meta charset="utf-8"><title>UWB - About</title><script type="module">function u(){const o=window.uwb;if(!o){console.error("[UWB About] Failed to get version info! Probably not running in a UWB engine!");return}const r=o.EngineVersion,s=o.EngineName,i=o.EngineVersion;var e=document.getElementById("uwbEngineVersionText"),n=document.getElementById("webEngineNameText"),t=document.getElementById("webEngineVersionText");e!=null&&(e.textContent=r),n!=null&&(n.textContent=s),t!=null&&(t.textContent=i),console.log("[UWB About] Found version info!")}u();</script><style rel="stylesheet" crossorigin>.content{font-family:Avenir,Helvetica,Arial,sans-serif;margin:40px 25px 25px}.header{border-bottom:#000 2px solid}.bottom-spacer{margin-bottom:1.2em}.footer{position:absolute;bottom:0}.fuckyou-text{font-size:8px;color:gray}body{background-color:#fff}</style></head><body><div class="content"><h2 class="header bottom-spacer">Unity Web Browser About</h2><p>UWB by <a href="https://github.com/Voltstro-Studios">Voltstro-Studios</a>, under MIT license.</p><p class="bottom-spacer">UWB Engine Version: <span id="uwbEngineVersionText">Getting...</span><br>Web Engine Name: <span id="webEngineNameText">Getting...</span><br>Web Engine Version: <span id="webEngineVersionText">Getting...</span></p><p><a href="https://github.com/Voltstro-Studios/UnityWebBrowser">GitHub</a> | <a href="https://uwb.voltstro.dev">Site</a></p><p class="footer fuckyou-text">UwU Nyaa~. Rowan SUXS XDDDDD</p></div></body></html>
1+
<!DOCTYPE html><html><head><meta charset="utf-8"><title>UWB - About</title><script type="module">function u(){const o=window.uwb;if(!o){console.error("[UWB About] Failed to get version info! Probably not running in a UWB engine!");return}const r=o.EngineVersion,s=o.EngineName,i=o.EngineVersion;var e=document.getElementById("uwbEngineVersionText"),n=document.getElementById("webEngineNameText"),t=document.getElementById("webEngineVersionText");e!=null&&(e.textContent=r),n!=null&&(n.textContent=s),t!=null&&(t.textContent=i),console.log("[UWB About] Found version info!")}u();</script><style rel="stylesheet" crossorigin>.content{font-family:Avenir,Helvetica,Arial,sans-serif;margin:40px 25px 25px}.header{border-bottom:black 2px solid}.bottom-spacer{margin-bottom:1.2em}.footer{position:absolute;bottom:0}.fuckyou-text{font-size:8px;color:gray}body{background-color:#fff}</style></head><body><div class="content"><h2 class="header bottom-spacer">Unity Web Browser About</h2><p>UWB by <a href="https://github.com/Voltstro-Studios">Voltstro-Studios</a>, under MIT license.</p><p class="bottom-spacer">UWB Engine Version: <span id="uwbEngineVersionText">Getting...</span><br>Web Engine Name: <span id="webEngineNameText">Getting...</span><br>Web Engine Version: <span id="webEngineVersionText">Getting...</span></p><p><a href="https://github.com/Voltstro-Studios/UnityWebBrowser">GitHub</a> | <a href="https://uwb.voltstro.dev">Site</a></p><p class="footer fuckyou-text">UwU Nyaa~. Rowan SUXS XDDDDD</p></div></body></html>

src/UnityWebBrowser.Pages/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"@types/node": "^18.0.0",
12+
"@types/node": "^22.0.0",
1313
"typescript": "^5.7.3",
14-
"vite": "^5.4.12",
15-
"vite-plugin-html": "^3.2.0",
16-
"vite-plugin-singlefile": "^2.0.3"
14+
"vite": "^6.1.0",
15+
"vite-plugin-minify": "^2.1.0",
16+
"vite-plugin-singlefile": "^2.1.0"
17+
},
18+
"packageManager": "pnpm@10.4.0+sha512.6b849d0787d97f8f4e1f03a9b8ff8f038e79e153d6f11ae539ae7c435ff9e796df6a862c991502695c7f9e8fac8aeafc1ac5a8dab47e36148d183832d886dd52",
19+
"pnpm": {
20+
"onlyBuiltDependencies": [
21+
"esbuild"
22+
]
1723
}
1824
}

0 commit comments

Comments
 (0)