posthtml-css-expand-polymer
v0.2.2
Published
PostHTML plugin for exanding <link> CSS imports in a format appropriate for PolymerElements
Downloads
2
Readme
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