shao
shao

Reputation: 311

How to ignore a file in Meteor.js?

Needs to include this file (http://trailers.apple.com/appletv/us/js/application.js) in a Meteor.js project.

The file can't be in the public folder, and it has to be under PROJECT_ROOT/appletv/us/js/ folder.

But whenever I include the file, it crashes Meteor.

Any advice on how to ignore this arbitrary file in an arbitrary folder?

Upvotes: 1

Views: 1144

Answers (2)

Bret Fisher
Bret Fisher

Reputation: 8596

Why can't it be in /public? /public is copied to the root of the server when deployed. So /public/appletv/us/js/application.js will be app.com/appletv/us/js/application.js when running.

Upvotes: 0

Josmar
Josmar

Reputation: 584

Just add

atv = {};

To the first line of this application.js

Other solution

Move your application.js to /lib, then create /lib/lib/hack.js So your project will be:

<project>/lib/lib/hack.js
<project>/lib/application.js
<project>/*stuff*

And put

atv = {};

As the content of hack.js

Upvotes: 1

Related Questions