在开发会话期间在本地运行ember服务器时,我看到连续更改会增加构建时间。构建时间达到了我必须使用'kill -9'来杀死ember服务器的点(因为'ctrl-c'似乎被忽略),因为服务器守护程序不再响应文件更改或响应http请求。我一直在这样跛行,但我无法想象这是预期的行为,因为它显着减缓了开发过程。
以下是我的环境详情:
我的申请目前包括:
对样式表和模板文件的更改似乎对构建时间产生最显着的影响。
以下是我看到的构建时间示例:
Build successful - 11516ms.
Slowest Trees | Total
----------------------------------------------+---------------------
Concat: Test Support CSS | 2321ms
Concat: Vendor Styles | 2044ms
Concat: Test Support JS | 1865ms
Concat: Vendor | 1864ms
SassCompiler | 1836ms
Funnel: App JS Files | 905ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
Concat: Test Support CSS (1) | 2321ms
Concat: Vendor Styles (1) | 2044ms
Concat: Test Support JS (1) | 1865ms
Concat: Vendor (1) | 1864ms
SassCompiler (1) | 1836ms
Funnel: App JS Files (1) | 905ms
file changed controllers/signin.js
Build successful - 13390ms.
Slowest Trees | Total
----------------------------------------------+---------------------
Concat: Test Support CSS | 2656ms
Concat: Vendor Styles | 2330ms
Concat: Vendor | 2185ms
SassCompiler | 2103ms
Concat: Test Support JS | 1817ms
Funnel: App JS Files | 1649ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
Concat: Test Support CSS (1) | 2656ms
Concat: Vendor Styles (1) | 2330ms
Concat: Vendor (1) | 2185ms
SassCompiler (1) | 2103ms
Concat: Test Support JS (1) | 1817ms
Funnel: App JS Files (1) | 1649ms
file changed templates/signin.hbs
Build successful - 12833ms.
Slowest Trees | Total
----------------------------------------------+---------------------
Concat: Vendor | 2779ms
SassCompiler | 2442ms
Concat: Test Support JS | 2225ms
Concat: Test Support CSS | 2036ms
Concat: Vendor Styles | 1661ms
Funnel: App JS Files | 1064ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
Concat: Vendor (1) | 2779ms
SassCompiler (1) | 2442ms
Concat: Test Support JS (1) | 2225ms
Concat: Test Support CSS (1) | 2036ms
Concat: Vendor Styles (1) | 1661ms
Funnel: App JS Files (1) | 1064ms
file changed controllers/signin.js
Build successful - 15537ms.
Slowest Trees | Total
----------------------------------------------+---------------------
Concat: Test Support JS | 2893ms
Concat: Test Support CSS | 2844ms
Concat: Vendor | 2700ms
SassCompiler | 2653ms
Concat: Vendor Styles | 2282ms
Funnel: App JS Files | 1203ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
Concat: Test Support JS (1) | 2893ms
Concat: Test Support CSS (1) | 2844ms
Concat: Vendor (1) | 2700ms
SassCompiler (1) | 2653ms
Concat: Vendor Styles (1) | 2282ms
Funnel: App JS Files (1) | 1203ms
file changed controllers/signin.js
Build successful - 17364ms.
Slowest Trees | Total
----------------------------------------------+---------------------
SassCompiler | 3667ms
Concat: Test Support CSS | 3643ms
Concat: Vendor | 3262ms
Concat: Test Support JS | 2437ms
Concat: Vendor Styles | 2408ms
Funnel: App JS Files | 999ms
Slowest Trees (cumulative) | Total (avg)
----------------------------------------------+---------------------
SassCompiler (1) | 3667ms
Concat: Test Support CSS (1) | 3643ms
Concat: Vendor (1) | 3262ms
Concat: Test Support JS (1) | 2437ms
Concat: Vendor Styles (1) | 2408ms
Funnel: App JS Files (1)
| 999ms
答案 0 :(得分:1)
事实证明,我遇到的问题已在最新版本的ember-cli中得到解决。按照here的说明升级到ember-cli 1.13.8,在构建中加速了一个数量级,并且在连续编辑中具有一致的构建时间。