Fred J.
Fred J.

Reputation: 6039

How meteor handles files with same name but different paths

In my Meteor project, Can I have app/client/abc.js AND app/server/abc.js and expect meteor to handle them graciously?

Upvotes: 0

Views: 24

Answers (2)

Areca
Areca

Reputation: 1292

Yes you can have abc.js in both client and server folders. However, /client/abc.js will be loaded only on client, whereas /server/abc.js will be loaded only on server.

Upvotes: 0

David Weldon
David Weldon

Reputation: 64342

Yes. File names in meteor are not currently meaningful apart from manipulating load order. See the structuring your app section of the docs.

Upvotes: 1

Related Questions