且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gulp bundle --ship:构建失败,因为任务将输出写入stderr

更新时间:2023-02-16 19:03:10

为获得快速胜利,您可以使用-debug 标志来捆绑任务,而不是使用-ship 直到此错误在将来的版本中得到修复:

Just for quick win you can use --debug flag for bundling task instead of --ship until this bug will be fixed in future releases:

gulp bundle --debug
gulp package-solution --ship

捆绑的文件将更大,但至少您不会在CI/CD中收到由于任务将输出写入到stderr而导致构建失败"错误.

The bundled file will be bigger, but at least you are not getting "The build failed because a task wrote output to stderr" error in CI/CD.