J. Bruni
J. Bruni

Reputation: 20490

How to make Meteor ignore files?

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

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

Upvotes: 16

Views: 5965

Answers (2)

Hubert OG
Hubert OG

Reputation: 19544

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.

Upvotes: 51

Lucbug
Lucbug

Reputation: 516

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.

Upvotes: 14

Related Questions