Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MichaelJCole opened this issue Nov 4, 2015 · 0 comments
Open

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

MichaelJCole opened this issue Nov 4, 2015 · 0 comments

Comments

@MichaelJCole
Copy link

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 :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant