How to build flutter web app in debug mode?

后端 未结 2 935
遥遥无期
遥遥无期 2021-01-14 02:10

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

相关标签:
2条回答
  • 2021-01-14 02:49

    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

    0 讨论(0)
  • 2021-01-14 02:57

    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.

    0 讨论(0)
提交回复
热议问题