- Progressive Web Application Development by Example
- Chris Love
- 189字
- 2021-08-05 10:33:19
Validating web manifest files
The web manifest is a simple JSON document, but it's easy to make typos or forget things. If your site is not properly registering the manifest file, you will need to troubleshoot the issue. Fortunately, there are a few resources to help you validate your file.
Google hosts a simple online validator (https://manifest-validator.appspot.com) where you can enter either a URL or just paste the manifest code into the page. It will parse your manifest and let you know if there is an issue:

The nodejs Web Manifest Validator (https://github.com/san650/web-app-manifest-validator) is a module you can include in your automated testing workflow to validate a manifest file. It is a couple of years old, so you may need to fork the project and update it if you are using newer manifest features. Remember that the manifest specification is not final and can and will change over time.
These are not the only tools. There are a few other node modules available as well as Lighthouse and Sonar. I will cover those tools in Chapter 10, Service Worker Tools, along with PWA Builder, which can generate your manifest.
- Mastering Node.js(Second Edition)
- 面向物聯網的CC2530與傳感器應用開發
- 重新定義Spring Cloud實戰
- Go Web Scraping Quick Start Guide
- 計算機網絡與通信(第2版)
- 企業網絡安全管理
- 電力物聯網工程技術原理與應用
- Metasploit Penetration Testing Cookbook
- React Cookbook
- 6G無線網絡空口關鍵技術
- Practical Web Penetration Testing
- 組網技術與網絡管理
- Laravel Application Development Cookbook
- 信息技術安全評估準則:源流、方法與實踐
- RestKit for iOS