Moved some files around, improved how notifications are being requested, and improved activation and installation-flow of serviceworker

This commit is contained in:
Kasper Rynning-Tønnesen
2020-02-21 14:36:27 +01:00
parent ac1e73ee09
commit 8b1d86bd9b
8 changed files with 291 additions and 113 deletions

View File

@@ -9,7 +9,7 @@ const ServiceWorkerConfig = {
extensions: [".js", ".vue"]
},
entry: {
serviceWorker: [helpers.root("public", "service-worker")]
serviceWorker: [helpers.root("src/service-worker", "service-worker")]
},
optimization: {
minimizer: []
@@ -19,7 +19,7 @@ const ServiceWorkerConfig = {
{
test: /\.js$/,
loader: "babel-loader",
include: [helpers.root("public", "service-worker")]
include: [helpers.root("src/service-worker", "service-worker")]
}
]
},