bless-loader
v1.0.0
Published
unofficial bless loader module for webpack. see: http://blesscss.com for more info.
Downloads
184
Readme
bless loader for webpack
Usage
API
import "./file.css";
// => will split the CSS files into multiple chunks (upto 4096 selectors) and then add these chunks to link tags with the href attribute being base64 data URI of these chunks
// example: <link type="text/css" rel="stylesheet" id="1d53a8dc7d323c4064a623e0d9acadd5-pace-0" class="blessed-links" href="data:text/css;base64,QGNoYXJzZXQgIlVURi04Ijt...=">
Recommended configuration
{
module: {
loaders: [
{ test: /\.css$/, loader: "bless" },
]
}
}
Install
npm install bless-loader
License
MIT (http://www.opensource.org/licenses/mit-license.php)