0

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.

Jonathan
  • 4,724
  • 7
  • 45
  • 65

1 Answers1

1

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.

Nate Bosch
  • 10,145
  • 2
  • 26
  • 22