Skip to content

Instantly share code, notes, and snippets.

@liitfr
Last active August 2, 2017 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liitfr/5f22109e2dd5f1ce9b2be56306d067bc to your computer and use it in GitHub Desktop.
Save liitfr/5f22109e2dd5f1ce9b2be56306d067bc to your computer and use it in GitHub Desktop.
inline sugarss in sugarml with spike
const cssStandards = require('spike-css-standards')();
const postcss = require('postcss');
module.exports = {
reshape: htmlStandards({
locals: ctx => ({ pageId: pageId(ctx) }),
content: {
postcss: css => postcss(cssStandards.plugins)
.process(css, { parser: cssStandards.parser })
.then(res => res),
},
}),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment