Running Ampify
1. Convert Page to AMP:
- Open new browser tab in chrome.
- Open Developer tools, and emulate mobile view on iphone x.
- Go to the desired page (for example http://example.com/).
- Click on the extension browser icon.
- A tab with the converted amp page will open. Switch it to mobile view in this tab as well. (http://localhost:2310/latest.html#development=1) (the file is located at
./dist
folder)
2. Complete AMP conversion:
In this step you will leverage aQuery. It will be used to make design adjustments, and recreate JavaScript behaiviors in the newly formed AMP page.
- Open
src/index.js
. - Write your aQuery instructions.
- Run yarn build. (Build file will be located at
./dist
folder) - Click the extension again to generate the AMP page with your aQuery code (see previous paragraph - "Convert Page to AMP")