diff --git a/netlify.toml b/netlify.toml index 775b19ec..deeaece9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] base = "/" publish = "/dist/" - command = "npm run build && npm run build:sw" + command = "npm run build" # && npm run build:sw [[plugins]] package = "netlify-plugin-gridsome-cache" diff --git a/src/main.js b/src/main.js index e0c0356a..315e9473 100644 --- a/src/main.js +++ b/src/main.js @@ -10,7 +10,13 @@ export default function(Vue, { router, head, isClient }) { Vue.component('Layout', DefaultLayout); } -if (process.isClient && process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { +if ( + process.isClient && + process.env.NODE_ENV === 'production' && + 'serviceWorker' in navigator +) { + console.log('no service worker time... baby'); + /* const {Workbox} = require('workbox-window'); console.log('service worker time baby!'); const wb = new Workbox('/sw.js'); @@ -22,4 +28,5 @@ if (process.isClient && process.env.NODE_ENV === 'production' && 'serviceWorker' } }); wb.register(); + */ }