Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amp to pwa #1

merged 6 commits into from Feb 17, 2019
Diff settings


Just for now

fix(amp): Install serviceworker

  • Loading branch information...
tomoyukikashiro committed Feb 16, 2019
commit c26c038e71162394118f0e4d4635c1c7d22da76d
Copy path View file
@@ -112,7 +112,12 @@ module.exports = {
options: {
files: ['posts/**/index.html', 'index.html'],
gaConfigPath: 'gaConfig.json',
dist: 'public/amp'
dist: 'public/amp',
serviceWorker: {
src: '',
'data-iframe-src': '',
layout: 'nodisplay'
@@ -0,0 +1,17 @@
<!doctype html>
<title>installing service worker</title>
<script type="text/javascript">
var swsource = '';
if("serviceWorker" in navigator) {
console.log('ServiceWorker scope: ', reg.scope);
}).catch(function(err) {
console.log('ServiceWorker registration failed: ', err);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.