PostXML plugin to convert plain HTML to Google Accelerated Mobile Pages (AMP).
npm install postxml-amp --save
- Type:
String
- Default:
''
- Type:
String
- Default:
true
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<img src="image.png">
</html>
body {
background-color: #fff;
}
<html amp="">
<head>
<style amp-custom="">body{background-color:#fff}</style>
</head>
<amp-img src="image.png" width="600" height="400"></amp-img>
</html>
MIT (c) Ruslan Kazakov