11ty / eleventy

A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
https://www.11ty.dev/
MIT License
17.18k stars 494 forks source link

Support Offline loading #175

Closed DirtyF closed 6 years ago

DirtyF commented 6 years ago

What would it take for 11ty to offer PWA capabilities by default?

When HTTPS is activated, 11ty could offer:

nhoizey commented 6 years ago

PWA is a generic (marketing) term regrouping a lot of features, which would you like to have by default?

nhoizey commented 6 years ago

I could see a Manifest generated from some elements in _data/metadata.json, but some mandatory ones might be missing.

I can't see how a generic Service Worker could be generated through, because there are a lot of different strategies for offline support.

You can create a plugin for one opinionated offline support strategy, but having this in the core could limit opportunities for developers wanting to support other strategies.

(I don't like the PWA/offline plugins currently available for Jekyll, for example)

nhoizey commented 6 years ago

@DirtyF maybe a good inspiration for such a plugin: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-offline

nhoizey commented 6 years ago

Well, it's based on sw-precache, which has been replaced by workbox.

DirtyF commented 6 years ago

FYI https://github.com/lavas-project/jekyll-pwa plugin is based on latest Workbox and is fine as a starter.

zachleat commented 6 years ago

I like it! We would love this for https://github.com/NebraskaJS/2018.nejsconf.com but I doubt I could do this by the end of next week 😎

zachleat commented 6 years ago

This repository is now using lodash style issue management for enhancements. This means enhancement issues will now be closed instead of leaving them open.

The enhancement backlog can be found here: https://github.com/11ty/eleventy/issues?utf8=%E2%9C%93&q=label%3Aneeds-votes+sort%3Areactions-%2B1-desc+