Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Support for PWAs? #34

Answered by kaleidawave
Ristovski asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, that's a good question!

I haven't built a PWA using Prism before. If you build with prism compile-app --context client then it should generate a index.html and client side JS in the output folder which could be uploaded to a static host (gh pages, firebase, cf pages, Netlify etc). The @Page decorator generates client side routing code so you could build the SPA with client side routing a PWA would need. However you would have to set up the service worker manually and some of that stuff I haven't tested.

Note that Prism is not actively maintained as I am working on a superior replacement. Feel free to try the unique features but I wouldn't recommend putting using it for production :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaleidawave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants