webdev doesn't allow setting optimization level #2526
Labels
P2
A bug or feature request we're likely to work on
package:webdev
triaged
type-enhancement
A request for a change that isn't a bug
Hi!
The documentation in https://dart.dev/web/deployment says:
If we check the
dart compile js
help section, we can see it supports optmization levels:However, if we check the
webdev build
help section, we can see it doesn't show anything related to these flags:If we try to pass the optimization level anyway, it doesn't work:
Another alternative I tried is
webdev build -- -O2
, but it doesn't work too:Should webdev's documentation enforce "You can use any option available to dart compile js with webdev build." if the relevant flags don't work? I guess so, it should work.
The text was updated successfully, but these errors were encountered: