refactor: replace Vite runtime with lightweight Node.js server
Use native http module to serve built static files and proxy API requests. No Vite dependency at runtime — only needed for building. This fixes SFC compilation errors on global install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-12
@@ -13,32 +13,24 @@
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
"index.html",
|
||||
"public/",
|
||||
"assets/",
|
||||
"src/",
|
||||
"vite.config.ts",
|
||||
"tsconfig.json",
|
||||
"tsconfig.app.json",
|
||||
"tsconfig.node.json",
|
||||
"package.json"
|
||||
"dist/"
|
||||
],
|
||||
"dependencies": {
|
||||
"@vitejs/plugin-vue": "^6.0.5",
|
||||
"highlight.js": "^11.11.1",
|
||||
"markdown-it": "^14.1.1",
|
||||
"naive-ui": "^2.44.1",
|
||||
"pinia": "^3.0.4",
|
||||
"sass": "^1.99.0",
|
||||
"vite": "^8.0.4",
|
||||
"vue": "^3.5.32",
|
||||
"vue-router": "^4.6.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it": "^14.1.2",
|
||||
"@types/node": "^24.12.2",
|
||||
"@vitejs/plugin-vue": "^6.0.5",
|
||||
"@vue/tsconfig": "^0.9.1",
|
||||
"sass": "^1.99.0",
|
||||
"typescript": "~6.0.2",
|
||||
"vite": "^8.0.4",
|
||||
"vue-tsc": "^3.2.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user