You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,10 +70,8 @@ There is a aliased module `@sw-event` module that will also be emitting the foll
39
70
-`sw-offline`
40
71
-`sw-error`
41
72
42
-
::: tip PWA NOTES
43
-
The `serviceWorker` option only handles the service worker. To make your site fully PWA-compliant, you will need to provide the Web App Manifest and icons in `.vuepress/public`. For more details, see [MDN docs about the Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest).
44
-
45
-
Also, only enable this if you are able to deploy your site with SSL, since service worker can only be registered under HTTPs URLs.
73
+
::: tip
74
+
Since you can only register service workers under HTTPs URLs, make sure you can deploy your site with SSL before enabling this option.
`serviceWorker` 选项仅仅用来控制 service worker,为了让你的网站完全地兼容 PWA,你需要在 `.vuepress/public` 提供 Manifest 和 icons,更多细节,请参见 [MDN docs about the Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest).
44
-
此外,只有您能够使用 SSL 部署您的站点时才能启用此功能,因为 service worker 只能在 HTTPs 的 URL 下注册。
73
+
::: tip
74
+
只有在你能够使用 SSL 部署您的站点时才能启用此功能,因为 service worker 只能在 HTTPs 的 URL 下注册。
0 commit comments