microcss

2.0.0 • Public • Published

NPM version

Use in conjunction with [lonesomedom] or with [browserify]

Api

var ucss = require('microcss');
ucss(domAnchor, [options,] chain(error, minimal_css)

Example

ucss(document.getElementById("myelement"), function(err, minimalcssRules){
  console.log(minimalcssRules); //tadaaa
});

Options

* inlineFonts (default false) : fetch & inline used fonts (using data-url)
* fontsDir    (default /fonts/): when not inlining fonts, considers all fonts available in this path
* inlineBackgrounds (default false) : fetch & inline background images (using data-url)
* backgroundsBaseDir (default /resources) : Concat with relative backgrounds path in css file

Dependents (1)

Package Sidebar

Install

npm i microcss

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

7.08 kB

Total Files

5

Last publish

Collaborators

  • 131
  • kalmani