Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create an Angular application using Vite?

I want to use Vite for creating an Angular app with basic routing, minimal options, and no testing files and open in port 5000

Searched all over and not got.

like image 707
ABHIJITH Avatar asked Nov 14 '25 22:11

ABHIJITH


2 Answers

Vite does not support Angular and vice-versa. The reason being, that the Angular CLI does more than the React CLI, for example, and also uses its own compiler called ngc.

like image 173
forbiddencoding Avatar answered Nov 17 '25 18:11

forbiddencoding


Yeah it's true that there is no default support for vite in angular project, and not to forget it is because of the fact as @forbiddencodding has mentioned that angular needs the the custom angular compiler ngc to compile its templates and other features. But how ever you can play around while starting up an angular project and can use vite. Click here to read the whole article.

like image 43
Ishtiaq Naqi Avatar answered Nov 17 '25 20:11

Ishtiaq Naqi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!