Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I optimize the js size of my AngularDart application?

I have read the Chapter on Production Deployment of the angular tutorial which indicates several ways to optimize the JS output size.

I also see a commit named feat(transformers): Add angular transformers to pub for no-mirror code generation. In this commit we can see the use of a new angular transformer.

  1. Will this new transformer make the advices of the Angular tutorial obsolete ?
  2. Will the optimization process be as simple as adding a single transformer to the pubspec.yaml ?
like image 995
Alexandre Ardhuin Avatar asked Nov 10 '22 10:11

Alexandre Ardhuin


1 Answers

Yes and yes.

The tutorial should be updated with the next AngularDart release.

You can try out the transformers now by referencing the github repo in your pubspec.yaml.

like image 62
James deBoer Avatar answered Dec 23 '22 16:12

James deBoer