add manifest
This commit is contained in:
parent
8228fe865f
commit
c1456eec18
@ -33,7 +33,8 @@
|
||||
"react-router-dom": "^7.3.0",
|
||||
"tailwind-merge": "^3.0.2",
|
||||
"tailwindcss": "^4.0.12",
|
||||
"tailwindcss-animate": "^1.0.7"
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
"vite-plugin-pwa": "^0.21.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.21.0",
|
||||
|
||||
2692
frontend/pnpm-lock.yaml
generated
2692
frontend/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
BIN
frontend/public/assets/180.png
Normal file
BIN
frontend/public/assets/180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
frontend/public/assets/192.png
Normal file
BIN
frontend/public/assets/192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
frontend/public/assets/256.png
Normal file
BIN
frontend/public/assets/256.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
frontend/public/assets/512.png
Normal file
BIN
frontend/public/assets/512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
BIN
frontend/public/assets/logo.png
Normal file
BIN
frontend/public/assets/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
@ -2,10 +2,53 @@ import path from "path"
|
||||
import tailwindcss from "@tailwindcss/vite"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import { defineConfig } from "vite"
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
// you can copy the base structure of manifest object.
|
||||
const manifestForPlugIn = {
|
||||
registerType: 'prompt' as const,
|
||||
includeAssests: ['favicon.ico', "apple-touc-icon.png", "masked-icon.svg"],
|
||||
manifest: {
|
||||
name: "Freedge",
|
||||
short_name: "Freedge",
|
||||
description: "Freedge est une application de recettes de cuisine générée par IA",
|
||||
icons: [{
|
||||
src: '/assets/192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
purpose: 'favicon'
|
||||
},
|
||||
{
|
||||
src: '/assets/512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'favicon'
|
||||
},
|
||||
{
|
||||
src: '/assets/180.png',
|
||||
sizes: '180x180',
|
||||
type: 'image/png',
|
||||
purpose: 'apple touch icon',
|
||||
},
|
||||
{
|
||||
src: '/assets/512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable',
|
||||
}
|
||||
],
|
||||
theme_color: '#171717',
|
||||
background_color: '#f0e7db',
|
||||
display: "standalone",
|
||||
scope: '/',
|
||||
start_url: "/",
|
||||
orientation: 'portrait' as const
|
||||
}
|
||||
}
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
plugins: [react(), tailwindcss(), VitePWA(manifestForPlugIn)],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user