fix(pwa): improvements to the PWA configuration
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2e08aa2573
commit
04c5ac1163
|
@ -19,11 +19,10 @@ export default defineConfig(({ command }) => {
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
// registerType: "autoUpdate",
|
registerType: "autoUpdate",
|
||||||
strategies: "injectManifest",
|
strategies: "injectManifest",
|
||||||
srcDir: "src",
|
srcDir: "src",
|
||||||
filename: "service-worker.ts",
|
filename: "service-worker.ts",
|
||||||
theme_color: "#ffd599",
|
|
||||||
// injectRegister: "auto",
|
// injectRegister: "auto",
|
||||||
// devOptions: {
|
// devOptions: {
|
||||||
// enabled: true,
|
// enabled: true,
|
||||||
|
@ -32,6 +31,7 @@ export default defineConfig(({ command }) => {
|
||||||
name: "Mobilizon",
|
name: "Mobilizon",
|
||||||
short_name: "Mobilizon",
|
short_name: "Mobilizon",
|
||||||
orientation: "portrait-primary",
|
orientation: "portrait-primary",
|
||||||
|
theme_color: "#ffd599",
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: "./img/icons/android-chrome-192x192.png",
|
src: "./img/icons/android-chrome-192x192.png",
|
||||||
|
|
Loading…
Reference in a new issue