How does Ember-CLI precompile templates?

筅森魡賤 提交于 2019-12-11 04:18:18

问题


Before moving to Ember-CLI, I had used Gulp where I created a task that would precompile the templates and add them to the Ember.TEMPLATES property. Ember would access the templates from there.

When working with Ember-CLI though, I noticed that Ember.TEMPLATES is an empty object and yet Ember is still able to resolve its templates. How does Ember-CLI do this?

来源:https://stackoverflow.com/questions/27034489/how-does-ember-cli-precompile-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!