Yeats
Yeats

Reputation: 2065

How do I make a slight modification to a package locally in Meteor?

I'm using a package that loads Font Awesome from a CDN. However, the CDN used is pretty terrible, often stalling or timing out, so I'd like to switch it out.

The source code is incredibly simple, and looking through it I found this:

style.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css';

Switching to a different CDN would only require changing this one line (I presume), but the problem is I don't know how! Or rather, I don't know where it is available in my project.

How do I actually do this?

Upvotes: 0

Views: 78

Answers (1)

Rafael Quintanilha
Rafael Quintanilha

Reputation: 1432

Create a packages/ directory at the top level directory of your app (myapp/packages) and simply git clone the package you want to modify into it.

Add the package via meteor add and you'll be able to edit the files of the package you just cloned.

Upvotes: 1

Related Questions