-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add pwa config * fix: update menifest description
- Loading branch information
1 parent
66ddbd3
commit 213bfd2
Showing
9 changed files
with
1,774 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,56 @@ | ||
import { defineConfig } from "vite"; | ||
import preact from "@preact/preset-vite"; | ||
import { ViteAliases } from "vite-aliases"; | ||
import { VitePWA } from "vite-plugin-pwa"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [preact(), ViteAliases({ prefix: "@" })], | ||
plugins: [ | ||
preact(), | ||
ViteAliases({ prefix: "@" }), | ||
VitePWA({ | ||
registerType: "autoUpdate", | ||
includeAssets: [ | ||
"favicon.ico", | ||
"apple-touch-icon.png", | ||
"android-chrome-192x192.png", | ||
], | ||
manifest: { | ||
name: "Curiosta makers", | ||
short_name: "curiosta makers", | ||
description: | ||
"Curiosta makers is a comprehensive platform for managing makerspaces", | ||
theme_color: "#ffffff", | ||
icons: [ | ||
{ | ||
src: "android-chrome-192x192.png", | ||
sizes: "192x192", | ||
type: "image/png", | ||
}, | ||
{ | ||
src: "android-chrome-512x512.png", | ||
sizes: "512x512", | ||
type: "image/png", | ||
}, | ||
{ | ||
src: "maskable_icon_x512.png", | ||
sizes: "512x512", | ||
type: "image/png", | ||
purpose: "any", | ||
}, | ||
{ | ||
src: "maskable_icon_x512.png", | ||
sizes: "512x512", | ||
type: "image/png", | ||
purpose: "maskable", | ||
}, | ||
], | ||
background_color: "#ffffff", | ||
display: "standalone", | ||
scope: "/", | ||
start_url: "/", | ||
orientation: "portrait", | ||
}, | ||
}), | ||
], | ||
}); |