fixed favicons and added service-worker

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-11 16:23:53 +02:00
parent 07e08ba4f6
commit 600575655d
5 changed files with 2082 additions and 6 deletions
+9 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020. Pascal Syma <pascal@syma.dev>
* Copyright (c) 2020. Antonio Martinez Casadesus and Pascal Syma.
* All rights reserved.
*/
@@ -7,6 +7,7 @@ const merge = require("webpack-merge");
const path = require("path");
const base = require("./base");
const TerserPlugin = require("terser-webpack-plugin");
const WorkboxPlugin = require('workbox-webpack-plugin');
module.exports = merge(base, {
mode: "production",
@@ -28,5 +29,11 @@ module.exports = merge(base, {
}
})
]
}
},
plugins: [
new WorkboxPlugin.GenerateSW({
clientsClaim: true,
skipWaiting: true,
}),
]
});