Vue Workbox Webpack "cannot use import statement outside a module"
You can check the Get Started guide to start using Workbox.
Also, you can not use ES modules in ServiceWorkers (yet). Check here for more info: https://stackoverflow.com/a/45578811/1273042