The Manifest.json
and ServiceWorker.js
files allow you to write Progressive Web Application (PWA) functionality as customizations. Manifest.json
contains metadata about your PWA, and ServiceWorker.js
acts as proxy servers that sit between the PWA and the network to allow for effective offline experiences. This article provides the steps for editing these files through the Content Management System (CMS).
Setup
- Log in to the Admin Console.
- Go to Settings and search for Enable Progressive Web Application.
- Toggle to Yes so the managed content is exposed on the storefront.
- Click Save.
Edit the files
- Go to the Admin Console.
- Click View Website.
- Toggle Content Editor to On.
- Select the desired website from the list of websites.
- Go to the Page Tree and select ServiceWorker.js or Manifest.json.
- Click the Edit icon to turn on the page editor.
- Click Edit on the associated page widget.
- Insert the text for the file.
- Click Save.
- Click Publish.
- Decide whether to publish immediately or sometime in the future. Click Publish.
Please sign in to leave a comment.