purify-css-inliner

0.0.4 • Public • Published

to install:

npm install purify-css-inliner

using the library:

via command line:

purifycssinliner <filename>.html

can also be used as a package:

let purify = require('purify-css'),
  inliner = require('../src/purifycssinliner')(purify)
inliner(process.argv[2], (output) => {})

what it do:

this gathers css from link tags on an HTML file, concatenates them together, and passes everything to the purify-css library. then the output is inserted into the page as critical css

Package Sidebar

Install

npm i purify-css-inliner

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

84.6 kB

Total Files

23

Last publish

Collaborators

  • timspro