Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Make validator offline version working (Currently, validator.js is fetched over the network when extension is activated) #12
If not connected to the internet, this extension should still use the embedded version of validator.js and only use the CDN version when connected.
Also, figure out a way to periodically update the extension to include the most recent validator.js version for offline usage.
Updating the dependency of amphtml-validator NPM package is just not enough since the amphtml-validator package only gets the new version in NPM when API changes but the engine code validator.js (https://github.com/ampproject/amphtml/blob/master/validator/engine/validator.js) gets regular patches.