本文介绍了为什么在Windows上我的ember-cli生成时间这么慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ember-cli在Windows上使用 ember服务器的构建速度非常慢。

Ember-cli is building very slowly with ember server on windows.

Build successful - 13126ms.

Slowest Trees                  | Total
-------------------------------+----------------
TreeMerger (vendor)            | 3154ms
TreeMerger (stylesAndVendor)   | 2051ms
TreeMerger (appAndDependencies) | 1914ms
StaticCompiler                 | 1791ms

与同一项目在Linux机器上的构建时间不到1秒相反。 / p>

This is in contrast to the same project building in less that 1 second on a linux box.

推荐答案

,以改善其在Windows上的性能

Official recommendation from ember-cli to improve its performance on windows

使用以下命令通过节点安装ember-cli-windows

Install ember-cli-windows with node using the below command

npm install -g ember-cli-windows

运行在项目根文件夹上执行以下命令

Run the following command on your project root folder

ember-cli-windows

这篇关于为什么在Windows上我的ember-cli生成时间这么慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 19:42