flutter build web
will build my flutter app with obfuscation and minification.
I want my error stack to be readable though.
How should I modify
Try:
flutter build web --profile --dart-define=Dart2jsOptimization=O0
See:
https://github.com/flutter/flutter/blob/720dff6a94bd054e82ec4bf84b5cb802bbc52ffffd/packages/flutter_tools/lib/src/build_system/targets/web.dart#L238-L239
The only way I have found to do this is to use flutter run -d chrome
. We would then need to locate where the files on disk are located.