Skip to content

ivsgroup/ucss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Micro css reduction

Resources

Stars

Watchers

Forks

Packages

No packages published