1.0.0 • Published 8 years ago
bless-loader v1.0.0
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
1.0.0
8 years ago