|
@ -3,7 +3,7 @@ |
|
|
import { register } from "register-service-worker"; |
|
|
import { register } from "register-service-worker"; |
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === "production") { |
|
|
if (process.env.NODE_ENV === "production") { |
|
|
register(`${process.env.BASE_URL}service-worker.js`, { |
|
|
register("/additional-scripts.js", { |
|
|
ready() { |
|
|
ready() { |
|
|
console.log( |
|
|
console.log( |
|
|
"App is being served from cache by a service worker.\n" + |
|
|
"App is being served from cache by a service worker.\n" + |
|
|