amp-to-html
Create amp-story. with ease.
Install
npm install amp-to-html
Example
You can use local or cdn url to amp-story scripts
const Amp = const type = 'cdn' //'cdn' or 'local'const data = //test story data const ampToHtmlConfig = type v0Path: 'https://cdn.ampproject.org/v0.js' ampStoryPath: 'https://cdn.ampproject.org/v0/amp-story-1.0.js' ampVideoPath: 'https://cdn.ampproject.org/v0/amp-video-0.1.js' ampAnimationPath: null fontPath: '' customFontPath: '' ampToHtmlConfig