0.2.2 • Published 4 years ago
posthtml-css-expand-polymer v0.2.2
PostHTML-CSS-Expand-Polymer
A fork of the posthtml-style-expantion plugin by renyamizuno. Corrected to work with WebComponents.
Install
npm i -D posthtml-css-expand-polymer
Usage
const posthtml = require('posthtml')
posthtml([require('posthtml-css-expand-polymer')({ root: './', encoding: 'utf-8' })])
.process('<link expand="true" href="/path/index.css" rel="stylesheet">')
.then( result => console.log(result.html))
Options
root
: Root folder
encoding
: Default utf-8