posthtml-collect-inline-styles
PostHTML plugin that collect inline styles and insert to <head>
Install
npm i posthtml-collect-inline-styles
# if still
npm i posthtml
Usage
Create .html file. (e.g. index.html)
Example
Transform it, Use the this plugin and PostHTML (e.g. posthtml.js)
const fs = posthtml = collectInlineStyles = ; const beforeHtml = fs afterHtml = html; console;
output
will be
Example
Run example
1 Close this repository
git clone git@github.com:totora0155/posthtml-collect-inline-styles.git
2 Change current directory
cd posthtml-collect-inline-styles
3 Install modules
npm install
4 Run script
npm run example