how to build two versions with webdev build?

Issue

is it possible to compile two versions when building?

I would like to have a build/ which is the production release for end users and a buildDev/ with less restrictive dart2js flags. Something like that.

The idea is to be able to access a page with some security token that forces the page use the dart2js debug version.

Solution

This is not possible to do in a single build command. webdev build --no-release will use the dev_options instead of release_options, so to get both flavors of build you’ll need to run two commands, webdev build; webdev build --no-release -o buildDev.

Answered By – Nate Bosch

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *