Ravi Kumar
Ravi Kumar

Reputation: 49

flutter web: how to obfuscate/minify the js code (in addition to the dart code)

I have a flutter web app which has some code in dart and some other code in javascript. When I build the release variant of the web app, the dart code seems to be obfuscated/minified. But the javascript code is not. The javascript code can be seen in the build/web/src directory as plain human readable source code.

How can I obfuscate/minify the js code? Is it possible with the flutter build command? or do I have to use some other tooling after the flutter build step?

Upvotes: 0

Views: 517

Answers (0)

Related Questions