如何忽略Meteor.js中的文件? [英] How to ignore a file in Meteor.js?
问题描述
需要包含此文件( http://trailers.apple.com/ appletv / us / js / application.js )在一个Meteor.js项目。
该文件不能在公共文件夹,它有在PROJECT_ROOT / appletv / us / js /文件夹下。
但是每当我包含这个文件的时候,它就会崩溃Meteor。
有关如何忽略任意文件夹的任何建议?
为什么不能在 / public
中?在部署时将 / public
复制到服务器的根目录。因此 /public/appletv/us/js/application.js
将会是 app.com/appletv/us/js/application.js
运行。
Needs to include this file (http://trailers.apple.com/appletv/us/js/application.js) in a Meteor.js project.
The file can't be in the public folder, and it has to be under PROJECT_ROOT/appletv/us/js/ folder.
But whenever I include the file, it crashes Meteor.
Any advice on how to ignore this arbitrary file in an arbitrary folder?
Why can't it be in /public
? /public
is copied to the root of the server when deployed. So /public/appletv/us/js/application.js
will be app.com/appletv/us/js/application.js
when running.
这篇关于如何忽略Meteor.js中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!