You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still, the size of a production bundle for a simple "hello world" is 455 kb while it is less than 200 kb with angular cli. Too bad that Angular documentation does not explain how to optimize that.
The text was updated successfully, but these errors were encountered:
@ah1508 thanks a lot for pointing it out! I went recently through https://www.upgradingangularjs.com/, and they show there the same thing + they show how to set up AOT for @angular/cli-free builds. Seems I'll need to publish an updated version of the original post some time:)
Hi,
The sample works but dependency injection does not. Example with
HttpClient
Adding
AngularWebPackPlugin
,@ngtools/webpack
andlinkerPlugin
solves the problem.Complete webpack config (with webpack 5, angular 13 and
type="module"
inpackage.json
) :Still, the size of a production bundle for a simple "hello world" is 455 kb while it is less than 200 kb with angular cli. Too bad that Angular documentation does not explain how to optimize that.
The text was updated successfully, but these errors were encountered: