- 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.
- RCNP實驗指南:構建高級的路由互聯網絡(BARI)
- Truffle Quick Start Guide
- 電子政務效益的經濟分析與評價
- 物聯網安全與深度學習技術
- SD-WAN架構與技術(第2版)
- 互聯網基礎資源技術與應用發展態勢(2021—2023)
- 互聯網安全的40個智慧洞見:2015年中國互聯網安全大會文集
- 物聯網技術與應用
- Getting Started with Grunt:The JavaScript Task Runner
- Microservice Patterns and Best Practices
- jQuery Mobile Web Development Essentials
- TD-LTE無線網絡規劃與設計
- React Cookbook
- 局域網組成實踐
- Web用戶查詢日志挖掘與應用