简体   繁体   English

如何使用 webdev build 构建两个版本?

[英]how to build two versions with webdev build?

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.我想要一个 build/ 这是最终用户的生产版本和一个 buildDev/ 限制较少的 dart2js 标志。 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.这个想法是能够使用一些强制页面使用 dart2js 调试版本的安全令牌访问页面。

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 webdev build --no-release将使用dev_options而不是release_options ,因此要获得两种构建方式,您需要运行两个命令webdev build; webdev build --no-release -o buildDev webdev build; webdev build --no-release -o buildDev . webdev build; webdev build --no-release -o buildDev

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM