1

In current state of project I want to build both for ddc and dart2js with debug info. Is this possible with same pubspec.yaml?

Using the recommended setting for ddc, the debug mode is associated with ddc.

web:
  compiler:
    debug: dartdevc

While the dart2jsbuild is obtained with --mode=release in commandline.

Only way I find now is by un/comment out the ddcsection from the pubspec.yaml.

1 Answer 1

1

You can use the command line flag instead of the pubspec.yaml setting

pub build --web-compiler=dartdevc

See also https://webdev.dartlang.org/tools/dartdevc

The disadvantage is, that IntelliJ currently doesn't allow to specify parameters to pub serve AFAIK.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.