meteorhacks / npm

Complete NPM integration for Meteor
http://meteorhacks.com/complete-npm-integration-for-meteor.html
MIT License
508 stars 43 forks source link

`npm install prismjs` - how to access this package in meteor? #109

Open MichaelJCole opened 8 years ago

MichaelJCole commented 8 years ago

Hi, what's the best way to use a client side library packaged in npm?

Normally I would make a symlink from the node_modules/prismjs directory into a public directory.

The best possible use case would be:

Meteor.npmStaticCss('some/file/in/package.css');
Meteor.npmStaticJs('some/file/in/package.js');

Loading at the "end" of the Meteor js and css would be perfect. If I need a different order, I can put that in my index.html.

Is there a way to do this and have the versions managed in packages.json? Right now I'm copying them into client/lib :-/