Angular: Small, fast, efficient AngularDart apps: the guide

Created on 20 Jul 2017  ยท  3Comments  ยท  Source: angulardart/angular

Leaving this issue for tracking/discussion.

An internal team mentioned they saw their app drop 5% in size when they flipped preserveWhitespace: false across all components. There are likely other tips/tricks we could publish, so I'd really like to have an even unofficial guide published this quarter.

not planned โœ documentation

Most helpful comment

Would it be possible that preserveWhitespace could be implemented as a build step/flag? It would be ideal if we were able to continue developing with whitespace in templates however like dart2js, stripping the whitespace becomes a build step that we can do when deploying to staging & production environments?

All 3 comments

Would it be possible that preserveWhitespace could be implemented as a build step/flag? It would be ideal if we were able to continue developing with whitespace in templates however like dart2js, stripping the whitespace becomes a build step that we can do when deploying to staging & production environments?

Pinging this as we work on Best Practices docs.

@jimmyff:

Would it be possible that preserveWhitespace could be implemented as a build step/flag?

Not likely. Are you OK With the proposal in https://github.com/dart-lang/angular/issues/804 instead?

@alorenzen:

Pinging this as we work on Best Practices docs.

@leonsenft @hterkelsen, would you be interested in starting a short doc here?

Was this page helpful?
0 / 5 - 0 ratings