加快缓慢的meteor.js 构建时间 [英] Speed up slow meteor.js build times

查看:35
本文介绍了加快缓慢的meteor.js 构建时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Meteor 中捆绑即使是琐碎的、百行的演示应用程序也需要大约 25 秒的时间.这对我来说似乎很慢.有没有办法大大加快这个速度?

The time it takes to bundle even the trivial, hundred line, demo apps in Meteor is about twenty five seconds. This seems very slow to me. Is there a way of speeding this up quite drastically?

我是 Meteor 的新手.当我正在寻找一种加快开发速度的方法时,有人向我指出了这一点,并且确实实时进行更改很棒,但是代码和测试周期比我习惯的要慢得多.我在等待时只能喝这么多咖啡.:-)

I'm a newbie to Meteor. It was pointed out to me as I was looking for a way of speeding up development and indeed getting changes out live is great but the code and test cycle is much slower than I'm used to. There is only so much coffee I can drink whilst waiting. :-)

我在 Macbook Pro、i7、8G RAM 或四核至强服务器(8 个带超线程)上运行.运行时间相似.那里不乏umph!

I'm running on a Macbook Pro, i7, 8G RAM or a quad core Xeon server (8 with hyperthreading). The run times are similar. No shortage of umph there!

推荐答案

是的,这需要一段时间,但您应该只在准备好将更改推送到生产环境时才进行捆绑.在开发您的应用程序时,您只需从应用程序的根目录运行 meteor,然后打开浏览器到 http://localhost:3000.在开发模式下,您对代码所做的任何更改都会立即反映在您的浏览器中.

Yes it takes a while, but you should only be bundling when you are ready to push your changes to a production environment. When developing your app you should just run meteor from your app's root directory, and open your browser to http://localhost:3000. In development mode, any changes your make to your code will be immediately reflected in your browser.

这篇关于加快缓慢的meteor.js 构建时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆