Building PC Connect for production is a two-phase process: TypeScript validates the entire source tree first, then Vite bundles everything into an optimisedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/yoelrrg-code/pcconnect/llms.txt
Use this file to discover all available pages before exploring further.
dist/ directory ready for static hosting. Because the project is marked "private": true in package.json, it is never published to a package registry — it is always deployed as a built static site.
Build command
package.json:
-
tsc -b— TypeScript’s composite build mode. It readstsconfig.json, which references bothtsconfig.app.json(coverssrc/) andtsconfig.node.json(coversvite.config.ts). If any type error exists anywhere in the source, this step fails and Vite never runs. -
vite build— Vite bundles the application, tree-shakes unused code, splits vendor chunks, and writes minified HTML, CSS, and JS todist/.
The chunk-size warning threshold is set to 1000 kB in
vite.config.ts to accommodate the ApexCharts library. Bundles under this size will not trigger a build warning.Production build steps
Run the build
Inspect the dist/ directory
public/ folder (such as favicon.svg and icons.svg) are copied to dist/ as-is with no hashing.Preview the production build locally
dist/ locally so you can verify the production bundle behaves correctly before deploying.Deploy dist/ to your hosting provider
Copy the contents of
dist/ to any static hosting service (Netlify, Vercel, AWS S3 + CloudFront, GitHub Pages, etc.). Because PC Connect is a single-page application using hash-based navigation, no special server-side routing configuration is required — all routes resolve from index.html.TypeScript build configuration reference
Both configs under thetsconfig.json composite root share these key compiler options:
| Option | Value | Effect |
|---|---|---|
target | es2023 | Output modern JavaScript |
module | esnext | ESM output for Vite |
moduleResolution | bundler | Matches Vite’s resolver |
noEmit | true | TypeScript checks only; Vite handles emit |
noUnusedLocals | true | Fails on unused variables |
noUnusedParameters | true | Fails on unused function params |
erasableSyntaxOnly | true | Disallows syntax that TypeScript cannot erase |
noEmit: true means TypeScript does not write .js files itself. Type-checking is purely a validation gate; Vite’s esbuild transformer handles the actual transpilation during the bundle step.Private package
package.json declares "private": true, which prevents accidental publishing to npm: