Open MichaelJCole opened 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.
node_modules/prismjs
public
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 :-/
client/lib
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 apublic
directory.The best possible use case would be:
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
:-/