feat: warn when dev server listens on a restricted port

If the port assigned to the Vite dev server is categorised as restricted
by browsers (e.g. port 6000), a warning is now displayed in the console
to prevent accessibility issues.
This commit is contained in:
siujamo
2026-05-08 12:04:41 +08:00
commit 76384bb9da
6 changed files with 234 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"outDir": "dist"
},
"include": ["src"]
}