How to make Meteor ignore files?

前端 未结 2 1189
天命终不由人
天命终不由人 2020-12-19 00:46

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

Or better y

2条回答
  •  自闭症患者
    2020-12-19 01:14

    There's no such file as .meteorignore yet.

    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.

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

    Update:
    As of Meteor v1.5.2.1, there is support for a .meteorignore file. It works exactly the same as a .gitignore.

提交回复
热议问题