2021-12-30 15:12:03 +01:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
2021-09-08 16:17:26 +02:00
|
|
|
import osmConfig from '@openstamanager/vite-config';
|
2021-09-11 11:01:08 +02:00
|
|
|
import {defineConfig} from 'laravel-vite';
|
2022-01-06 17:19:59 +01:00
|
|
|
import {VitePWA} from 'vite-plugin-pwa';
|
2021-09-07 13:28:20 +02:00
|
|
|
|
2022-01-06 17:19:59 +01:00
|
|
|
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
|
|
|
|
})
|
|
|
|
]
|
|
|
|
}));
|