postxml-amp
![npm version](http://img.shields.io/npm/v/postxml-amp.svg?style=flat-square)
PostXML plugin to convert plain HTML to Google Accelerated Mobile Pages (AMP).
Installation
npm install postxml-amp --save-dev
Usage
Postxml
Options
cwd
Assets (images/styles) file path
Type: String
Default: ''
round
Enable images dimensions rounding
Type: String
Default: true
Example
Input
<html><head><link rel="stylesheet" href="style.css"></head><img src="image.png"></html>
image.png
image.png
style.css
body {
background-color: #FFF;
}
Output
<html amp=""><head><style amp-custom="">body{background-color:#FFF}</style></head><amp-img src="image.png" width="600" height="400"></amp-img></html>
Licence
MIT