Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Angular 16 with Vite
Kristiyan Velkov
Kristiyan Velkov

Posted on

     

Angular 16 with Vite

What is Vite?

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:

  • A dev server that provides rich feature enhancements over native ES modules, for example extremely fast Hot Module Replacement (HMR).

  • A build command that bundles your code with Rollup, pre-configured to output highly optimized static assets for production.

Why Angular CLI start using Vite ?

Vite makes your builds faster.

  • Early tests showed over72% improvement in cold production builds.

  • In ng serve powers both your development and production builds with Vite!

*Angular CLI relies on Vite exclusively as a development server. *

Configuration and Support selector mathing

Angular compiler needs to maintain a dependency graph between your components which requires a different compilation model than Vite.

You can give Vite + esbuild a try by updating your angular.json:

"architect":{"build":{*Addtheesbuildsuffix*/"builder":"@angular-devkit/build-angular:browser-esbuild",
Enter fullscreen modeExit fullscreen mode

Image description

linkedin


Image description

If you like my work and want to support me to work hard, please donate via:

Revolut website payment or use the QR code above.

Thanks a bunch for supporting me! It means a LOT 😍

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Front-end Advocate || Mentor || Leader || Blogger || Book Author
  • Location
    Bulgaria, Sofia
  • Education
    Law
  • Work
    Tech Lead | JavaScript Domain knowledge lead
  • Joined

More fromKristiyan Velkov

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp