0.2.0 • Published 4 years ago

posthtml-style-expansion v0.2.0

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

PostHTML-Style-Expansion npm version Build Status

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

0.2.0

4 years ago

0.1.0

7 years ago