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-recommended-scss": "^5.0.2",
|
||||||
"stylelint-config-standard": "^24.0.0",
|
"stylelint-config-standard": "^24.0.0",
|
||||||
"stylelint-scss": "^4.1.0",
|
"stylelint-scss": "^4.1.0",
|
||||||
"vite-plugin-pwa": "0.11.11"
|
"vite-plugin-pwa": "^0.11.12"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"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-recommended-scss: ^5.0.2
|
||||||
stylelint-config-standard: ^24.0.0
|
stylelint-config-standard: ^24.0.0
|
||||||
stylelint-scss: ^4.1.0
|
stylelint-scss: ^4.1.0
|
||||||
vite-plugin-pwa: 0.11.11
|
vite-plugin-pwa: ^0.11.12
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
'@inertiajs/inertia': 0.10.1
|
'@inertiajs/inertia': 0.10.1
|
||||||
@@ -122,7 +122,7 @@ devDependencies:
|
|||||||
stylelint-config-recommended-scss: 5.0.2
|
stylelint-config-recommended-scss: 5.0.2
|
||||||
stylelint-config-standard: 24.0.0
|
stylelint-config-standard: 24.0.0
|
||||||
stylelint-scss: 4.1.0
|
stylelint-scss: 4.1.0
|
||||||
vite-plugin-pwa: 0.11.11
|
vite-plugin-pwa: 0.11.12
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
@@ -5888,8 +5888,8 @@ packages:
|
|||||||
spdx-expression-parse: 3.0.1
|
spdx-expression-parse: 3.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/vite-plugin-pwa/0.11.11:
|
/vite-plugin-pwa/0.11.12:
|
||||||
resolution: {integrity: sha512-/nSLS7VfGN5UrL4a1ALGEQAyga/H0hYZjEkwPehiEFW1PM1DTi1A8GkPCsmevKwR6vt10P+5wS1wrvSgwQemzw==}
|
resolution: {integrity: sha512-XqFmA4y9C4RBb5osSsa26GVwOSwbzf2GNVcT5+06KYYdguqLpuI9FW7iV/akZqg0OUNUpH4tHfme8SnHA4PIXA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 4.3.3
|
debug: 4.3.3
|
||||||
fast-glob: 3.2.7
|
fast-glob: 3.2.7
|
||||||
|
@@ -3,43 +3,40 @@ import osmConfig from '@openstamanager/vite-config';
|
|||||||
import {defineConfig} from 'laravel-vite';
|
import {defineConfig} from 'laravel-vite';
|
||||||
import {VitePWA} from 'vite-plugin-pwa';
|
import {VitePWA} from 'vite-plugin-pwa';
|
||||||
|
|
||||||
export default defineConfig(osmConfig({
|
export default defineConfig(osmConfig())
|
||||||
plugins: [
|
.withPlugins(...VitePWA({
|
||||||
VitePWA({
|
includeAssets: [
|
||||||
includeAssets: [
|
'images/favicon/favicon.ico',
|
||||||
'images/favicon/favicon.ico',
|
'../robots.txt',
|
||||||
'../robots.txt',
|
'images/favicon/apple-touch-icon.png',
|
||||||
'images/favicon/apple-touch-icon.png',
|
'images/*.png'
|
||||||
'images/*.png'
|
],
|
||||||
],
|
manifest: {
|
||||||
manifest: {
|
name: 'OpenSTAManager',
|
||||||
name: 'OpenSTAManager',
|
short_name: 'OSM',
|
||||||
short_name: 'OSM',
|
description: 'Il software gestionale open source per l\'assistenza tecnica e la fatturazione',
|
||||||
description: 'Il software gestionale open source per l\'assistenza tecnica e la fatturazione',
|
categories: ['business', 'productivity'],
|
||||||
categories: ['business', 'productivity'],
|
display: 'minimal-ui',
|
||||||
display: 'minimal-ui',
|
theme_color: '#3f3f3f',
|
||||||
theme_color: '#3f3f3f',
|
background_color: '#fffff',
|
||||||
background_color: '#fffff',
|
icons: [
|
||||||
icons: [
|
{
|
||||||
{
|
src: 'android-chrome-192x192.png',
|
||||||
src: 'android-chrome-192x192.png',
|
sizes: '192x192',
|
||||||
sizes: '192x192',
|
type: 'image/png'
|
||||||
type: 'image/png'
|
},
|
||||||
},
|
{
|
||||||
{
|
src: 'android-chrome-512x512.png',
|
||||||
src: 'android-chrome-512x512.png',
|
sizes: '512x512',
|
||||||
sizes: '512x512',
|
type: 'image/png'
|
||||||
type: 'image/png'
|
},
|
||||||
},
|
{
|
||||||
{
|
src: 'android-chrome-512x512.png',
|
||||||
src: 'android-chrome-512x512.png',
|
sizes: '512x512',
|
||||||
sizes: '512x512',
|
type: 'image/png',
|
||||||
type: 'image/png',
|
purpose: 'any maskable'
|
||||||
purpose: 'any maskable'
|
}
|
||||||
}
|
]
|
||||||
]
|
},
|
||||||
},
|
useCredentials: true
|
||||||
useCredentials: true
|
}));
|
||||||
})
|
|
||||||
]
|
|
||||||
}));
|
|
||||||
|
Reference in New Issue
Block a user