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
{{ message }}
Repository navigation
Is there any way to disable minify on flutter-web release build or pass arguments to dart2js #62259
How can I disable minification for a Web release build? It is messing up my JSON conversion because of class names mismatch.
There is an option for dart2js compiler which can specify the level of minifying but I can't find any documentation on how to pass that option from flutter build.
flutter build web --profile does not minify. Optimizations may still result in type names not being unique or appearing.
It is messing up my JSON conversion because of class names mismatch
Relying on class names through toString (or some other means) sounds like a huge hack, unless you are implementing the mapping yourself. I would recommend reaching out on a flutter.dev/community site to find guidance on a better approach.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jonahwilliams commentedon Jul 26, 2020
flutter build web --profile does not minify. Optimizations may still result in type names not being unique or appearing.
Relying on class names through toString (or some other means) sounds like a huge hack, unless you are implementing the mapping yourself. I would recommend reaching out on a flutter.dev/community site to find guidance on a better approach.
github-actions commentedon Aug 7, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.