New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear how to run dart2js with --minify with Editor #8751
Comments
This comment was originally written by @sethladd Attachment: |
This comment was originally written by @sethladd Attachment: |
This comment was originally written by googlegroups...@kaioa.com Right now it's indeed very well hidden.
Theoretically, you could also add "--output-type=dart" (dart2dart) there, but then you'd output a minified Dart file with ".js" extension whenever you run "Generate JavaScript". This really needs some restructuring. Right now I use a batch file to run dart2dart. That's a little bit too low-tech for my taste. I'd prefer to do that from within the editor. |
Removed Type-Defect label. |
Set owner to @devoncarew. |
Why isn't minify on by default? |
This comment was originally written by @sethladd Answering my own question... minify is more of a deploy step. |
This will be taken care of by pub build. Added NotPlanned label. |
This issue was originally filed by @sethladd
I'm not sure how to run --minify with dart2js when using the Editor.
Right-click, run as JavaScript doesn't have a sub-option.
Going into Manage Run configurations, and nothing jumps out at me. (see screenshot)
Can we make this easier? JavaScript size is one of the most important metrics by which people judge Dart.
Thanks!
The text was updated successfully, but these errors were encountered: