This works great (thx Ryan), but I since the tutorial was written before 1.3 is relies on packages like…
Webshot via meteorhacks:npm)
…and makes use of them with
require like so:
var webshot = Meteor.npmRequire('webshot');
var fs = Npm.require('fs');
var Future = Npm.require('fibers/future');
With the native npm-support in 1.3 this is probably an outdated approach, right?
Does this mean I can just do the following:
get rid of
meteorhacks:ssr?) and install the same via
npm install (package) --save-dev.
requireto use those packages. Is this neccessary/recommended?
Is there anything else I would need to change to make such a transition?
Thanks for any kind of help!