Vite Angular

Vue 安裝
Node v20.17.0
Angular CLI 19.2.5.

1
npm create vite@latest

到專案內

1
cd 專案

Port 4200 is already in use.
Would you like to use a different port? (Y/n)
連接埠 4200 已被使用。
您想使用其他連接埠嗎? (是/否)
Would you like to use a different port? Yes
Component HMR has been enabled.
If you encounter application reload issues, you can manually reload the page to bypass HMR and/or disable this feature with the --no-hmr command line option.
Please consider reporting any issues you encounter here: https://github.com/angular/angular-cli/issues

Browser bundles
Initial chunk files | Names | Raw size
polyfills.js | polyfills | 90.20 kB |
main.js | main | 23.25 kB |
styles.css | styles | 96 bytes |

                 | Initial total    | 113.55 kB

Server bundles
Initial chunk files | Names | Raw size
polyfills.server.mjs | polyfills.server | 570.97 kB |
chunk-VIHJC4M4.mjs | - | 23.69 kB |
server.mjs | server | 1.39 kB |
main.server.mjs | main.server | 800 bytes |

Application bundle generation complete. [2.570 seconds]

Watch mode enabled. Watching for file changes…
NOTE: Raw file sizes do not reflect development server per-request transformations.

參考資料

Angular 19安裝