- Progressive Web Application Development by Example
- Chris Love
- 161字
- 2021-08-05 10:33:16
Adding a manifest
Adding a web manifest file should be the first step in upgrading an existing website. You can create your site's manifest file in a matter of minutes. In the tooling chapter, I will review a few online resources that can help automate the process.
Registering a PWA's web manifest requires a special link element in the HTML head element. The following code shows how the 2048 manifest file is registered:
<head>
….
<link rel="manifest" href="manifest.json">
</head>
If you are familiar with referencing a style sheet, this syntax should look familiar. The difference is the rel attribute value being manifest. The href value points to the manifest file. You are free to name it anything, but manifest is the most common name.
The next chapter will go into more manifest file details. You can reference the project's manifest.json file to see how the 2048 game is configured. It contains the application's name, default URL, primary colors, and an array of icon image references.
- Drush User’s Guide
- 面向云平臺的物聯網多源異構信息融合方法
- 互聯網安全的40個智慧洞見:2014年中國互聯網安全大會文集
- Getting Started with WebRTC
- Windows Server 2012 Hyper-V虛擬化管理實踐
- 網絡設計與應用(第2版)
- Learning Storm
- 網絡綜合布線(第2版)
- Implementing NetScaler VPX?
- Building RESTful Web Services with .NET Core
- 物聯網M2M開發技術:基于無線CPU-Q26XX
- NB-IoT原理和優化
- Cisco無線局域網配置基礎
- 通信系統實戰筆記:無處不在的信號處理
- 網絡空間作戰:機理與籌劃