This is the ratchet, probably totally brittle way I find my app’s css to later be inlined in my e-mail html:
// server/sendEmailExample.js
var fs = Npm.require('fs');
...
var cssName = _.find(Object.keys(WebAppInternals.staticFiles), function (fileName) { return /.css$/.test(fileName) });
var cssPath = WebAppInternals.staticFiles[cssName].absolutePath;
var css = fs.readFileSync(cssPath);
...
var html = SSR.render(...);
var htmlWithInlineCss = juice(html, {extraCss: css});
Has anyone come across a better way to access the app’s css?