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 👍
When you install C language is it writing everything automatically to create a complex application or you need to create it :D ?
What falls from a waterfall ?
U need to install everything automatically.
There is a tool called
workbox
this is the easiest way that i foundThen you need to add registrator script inside index.html
Cheers
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 👍
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
github.com/rxdi/starter-client-sid...
Cheers!