posthtml-style-expansion
v0.2.0
Published
PostHTML plugin expansion link rel="stylesheet"
Downloads
7
Readme
PostHTML-Style-Expansion
PostHTML plugin expand link rel="stylesheet".
Install
npm i -D posthtml-style-expansion
Usage
const posthtml = require('posthtml')
posthtml([require('posthtml-style-expansion')({ 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