mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
build: 💚 Fix Vite PWA (antfu/vite-plugin-pwa#199)
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
"stylelint-config-recommended-scss": "^5.0.2",
|
||||
"stylelint-config-standard": "^24.0.0",
|
||||
"stylelint-scss": "^4.1.0",
|
||||
"vite-plugin-pwa": "0.11.11"
|
||||
"vite-plugin-pwa": "^0.11.12"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
|
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -59,7 +59,7 @@ specifiers:
|
||||
stylelint-config-recommended-scss: ^5.0.2
|
||||
stylelint-config-standard: ^24.0.0
|
||||
stylelint-scss: ^4.1.0
|
||||
vite-plugin-pwa: 0.11.11
|
||||
vite-plugin-pwa: ^0.11.12
|
||||
|
||||
dependencies:
|
||||
'@inertiajs/inertia': 0.10.1
|
||||
@@ -122,7 +122,7 @@ devDependencies:
|
||||
stylelint-config-recommended-scss: 5.0.2
|
||||
stylelint-config-standard: 24.0.0
|
||||
stylelint-scss: 4.1.0
|
||||
vite-plugin-pwa: 0.11.11
|
||||
vite-plugin-pwa: 0.11.12
|
||||
|
||||
packages:
|
||||
|
||||
@@ -5888,8 +5888,8 @@ packages:
|
||||
spdx-expression-parse: 3.0.1
|
||||
dev: true
|
||||
|
||||
/vite-plugin-pwa/0.11.11:
|
||||
resolution: {integrity: sha512-/nSLS7VfGN5UrL4a1ALGEQAyga/H0hYZjEkwPehiEFW1PM1DTi1A8GkPCsmevKwR6vt10P+5wS1wrvSgwQemzw==}
|
||||
/vite-plugin-pwa/0.11.12:
|
||||
resolution: {integrity: sha512-XqFmA4y9C4RBb5osSsa26GVwOSwbzf2GNVcT5+06KYYdguqLpuI9FW7iV/akZqg0OUNUpH4tHfme8SnHA4PIXA==}
|
||||
dependencies:
|
||||
debug: 4.3.3
|
||||
fast-glob: 3.2.7
|
||||
|
@@ -3,43 +3,40 @@ import osmConfig from '@openstamanager/vite-config';
|
||||
import {defineConfig} from 'laravel-vite';
|
||||
import {VitePWA} from 'vite-plugin-pwa';
|
||||
|
||||
export default defineConfig(osmConfig({
|
||||
plugins: [
|
||||
VitePWA({
|
||||
includeAssets: [
|
||||
'images/favicon/favicon.ico',
|
||||
'../robots.txt',
|
||||
'images/favicon/apple-touch-icon.png',
|
||||
'images/*.png'
|
||||
],
|
||||
manifest: {
|
||||
name: 'OpenSTAManager',
|
||||
short_name: 'OSM',
|
||||
description: 'Il software gestionale open source per l\'assistenza tecnica e la fatturazione',
|
||||
categories: ['business', 'productivity'],
|
||||
display: 'minimal-ui',
|
||||
theme_color: '#3f3f3f',
|
||||
background_color: '#fffff',
|
||||
icons: [
|
||||
{
|
||||
src: 'android-chrome-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
src: 'android-chrome-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
src: 'android-chrome-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable'
|
||||
}
|
||||
]
|
||||
},
|
||||
useCredentials: true
|
||||
})
|
||||
]
|
||||
}));
|
||||
export default defineConfig(osmConfig())
|
||||
.withPlugins(...VitePWA({
|
||||
includeAssets: [
|
||||
'images/favicon/favicon.ico',
|
||||
'../robots.txt',
|
||||
'images/favicon/apple-touch-icon.png',
|
||||
'images/*.png'
|
||||
],
|
||||
manifest: {
|
||||
name: 'OpenSTAManager',
|
||||
short_name: 'OSM',
|
||||
description: 'Il software gestionale open source per l\'assistenza tecnica e la fatturazione',
|
||||
categories: ['business', 'productivity'],
|
||||
display: 'minimal-ui',
|
||||
theme_color: '#3f3f3f',
|
||||
background_color: '#fffff',
|
||||
icons: [
|
||||
{
|
||||
src: 'android-chrome-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
src: 'android-chrome-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
src: 'android-chrome-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable'
|
||||
}
|
||||
]
|
||||
},
|
||||
useCredentials: true
|
||||
}));
|
||||
|
Reference in New Issue
Block a user