How to build flutter web app in debug mode?

后端 未结 2 940
遥遥无期
遥遥无期 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

提交回复
热议问题