如何使流星忽略文件? [英] How to make Meteor ignore files?

查看:61
本文介绍了如何使流星忽略文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Meteor文件结构中是否存在一些特定的文件夹,而Meteor只是忽略了该文件夹? (meteor bundlemeteor deploy等)

Is there some specific folder in Meteor file structure which is simply ignored by Meteor? (meteor bundle and meteor deploy etc)

或更妙的是:是否存在一种.meteorignore文件,我们可以在其中列出流星忽略的文件?

Or better yet: is there a kind of .meteorignore file where we can list files for Meteor to ignore?

推荐答案

还没有.meteorignore这样的文件.

目前,从Meteor隐藏文件的唯一可靠方法是使其隐藏(在名称开头添加一个点).您可以隐藏整个目录,如果您需要诸如Grunt任务之类的特定文件名,这将很有用.

Currently the only reliable way to hide a file from Meteor is to make it hidden (add a dot to the beginning of name). You can hide the whole directory, which is useful if you need specific filenames for things like Grunt tasks.

例如,如果您创建一个名为.hammerTime的目录,那么Meteor不能触摸它.

For example if you create a directory called .hammerTime, then Meteor can't touch this.

这篇关于如何使流星忽略文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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