How to make Meteor ignore files?

前端 未结 2 1187
天命终不由人
天命终不由人 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:10

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

    You can use them in any directory of your project and are fully integrated with the file watching system.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题