- 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.
- 物聯(lián)網(wǎng)安全:理論、實(shí)踐與創(chuàng)新
- SD-WAN架構(gòu)與技術(shù)(第2版)
- 局域網(wǎng)組建、管理與維護(hù)項(xiàng)目教程(Windows Server 2003)
- 2018網(wǎng)信發(fā)展報(bào)告
- 世界互聯(lián)網(wǎng)發(fā)展報(bào)告·2019
- Mastering TypeScript 3
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來(lái)演進(jìn)
- 圖解手機(jī)元器件維修技巧
- Windows Server 2012 Hyper-V虛擬化管理實(shí)踐
- Scala Design Patterns.
- 高級(jí)網(wǎng)絡(luò)技術(shù)
- Microsoft Power Platform Enterprise Architecture
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- Hands-On Bitcoin Programming with Python
- Selenium WebDriver 3 Practical Guide