dart - How do I set the dart2js --minify option from the command line when executing `pub build`? -


I need many different "modes" for my release process. However, if I use the - mode option for pub build and sets it to another value other than release It emphasizes un -impress javascript

I know that I can configure the dart2js transformer in my pubspec.yaml , but if I set minify: true $ dart2js in my pubspec.yaml , I am compelled to minify them, and then can not produce un-minified debug builds.

What I'm really looking for is a way to configure arbitrary dart 2j options (minified, checked etc.) in the pub build via CIL. The method is (so that I do not have to hardcode in ) Pubspec.yaml ), or, due to being unsuccessful, be able to specify additional arbitrary flags from pub build CLI I can reserve for - mode debug and release . asplugin () Transformer creates an barback settings object, but I can see how to show arbitrary parameters through the command line through the command line ?

I've never seen anything like this (for example in any bug report) and I ' I'm sure this is not supported. I just suggest making a feature request.

In a way, I can imagine that a script that pub build before executing the pubpec.yaml file. It should be easy to use the package


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -