Ember 生产构建花费的时间超过预期

Ember build for production took more than expected time

我正在开发一个 Ember 应用程序,在该应用程序中

为生产环境构建应用程序在构建过程中给出以下警告。

>>ember build --environment production
WARNING: Node v7.2.1 is not tested against Ember CLI on your platform. We recommend that you use the most-recent "Active LTS" version of Node.js.
/ Building[WARN] `assets/vendor.js` took: 27201ms (more than 20,000ms)
cleaning up...
Built project successfully. Stored in "dist/".
File sizes:
 - dist/assets/vendor-55a426e75e5239020a12bb7bfc6ffc2a.js: 759.74 KB (195.13 KB gzipped)
 - dist/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css: 0 B

我想抑制这些逐渐减弱的消息,为此我尝试使用 --silent 命令。

ember build --environment production --silent

我仍然收到以下警告:

[WARN] `assets/vendor.js` took: 27201ms (more than 20,000ms)

有人告诉我如何抑制此警告或修复此问题吗?

OS: Windows 2012 R2 服务器

这是 broccoli-uglify-sourcemap 中的一个错误,我已经打开了一个问题来跟踪和修复:

https://github.com/ef4/broccoli-uglify-sourcemap/issues/38


我已经发布了新版本的 broccoli-uglify-sourcemap (v1.5.1),它现在遵守 --silent 并且还提供了更好的警告消息。

此依赖项升级后,您的问题应该会消失。

以下命令可用于确认您至少是 v1.5.1

npm ls broccoli-uglify-sourcemap