Eleventy: any plan for PWA for 11ty?

Created on 3 Feb 2019  路  2Comments  路  Source: 11ty/eleventy

Hi all, I was wondering if there's any plan at all to have PWA support for 11ty? I managed to get all 馃挴 for my 馃椉Lighthouse score, except for PWA of course.

I was thinking if there's a way to do it manually if it's not thru 11ty plugins 馃

Most helpful comment

For me, Google Workbox is the easiest way to get this things done.

If you don't mind debug it while in eleventy --serve situation, you can add it on your end of build process on your task runner with workbox-build or directly in your npm script using workbox-cli.

But if you want to workbox to regenerate your service-worker automatically everytime you change something while in the local test environment, you need to either make your own watcher on your task runner, or using eleventy-plugin-pwa.

All 2 comments

For me, Google Workbox is the easiest way to get this things done.

If you don't mind debug it while in eleventy --serve situation, you can add it on your end of build process on your task runner with workbox-build or directly in your npm script using workbox-cli.

But if you want to workbox to regenerate your service-worker automatically everytime you change something while in the local test environment, you need to either make your own watcher on your task runner, or using eleventy-plugin-pwa.

hey @okitavera thanks I wasn't aware of these options, will take a look at Google Workbox, feels like I would go with the latter so I might have to check out the plugin or add own watcher. Thanks again! Feel free to share any example if you have any

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DirtyF picture DirtyF  路  3Comments

zac-heisey picture zac-heisey  路  3Comments

smaimon picture smaimon  路  3Comments

robdodson picture robdodson  路  3Comments

kaloja picture kaloja  路  3Comments