Skip to content

Postcss processor for moving big base64 inlines to separate css file

License

Notifications You must be signed in to change notification settings

KELiON/data-split-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

About

PostCSS postprocessor for moving big base64 inlines to separate css file.

API

DataSplit supports two options:

  • minLength minimum size of inlined block that will be moved to separate file. Defaut is 0 (all inlines are moved);
  • dataRegexp – regular expression to find inlines. Default is /url\(('|")?data/g

Example

var DataSplit = require('data-split')
splitter = new DataSplit();
var result = splitter.process(cssString);
// New css with all inlines
console.log(result.inlines.toString());
// Your css without inlines
console.log(result.target.toString());

About

Postcss processor for moving big base64 inlines to separate css file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published