DEV Community

Discussion on: Turning a React app into an installable PWA with offline detection, service workers and theming.

alexgurr profile image
Alex Gurr Author

Using the pre built create react app scripts is probably better, as they contain code that will handle your web pack bundle files specifically with caching, whereas the above is kind of generic. The use of a script in the html also is kind of pointless in React land.

Your suggestion is good for vanilla html/js sites though 👍

Thread Thread
stradivario profile image
Kristiqn Tachev • Edited on

Oh thanks man i didnt know that i am more like Vanilla, Angular, WebComponents, LitHTML developer.

Sorry if i intrude somehow the topic.

You can check one starter that i have created