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-10 17:20:41 +01:00
|
|
|
export default defineConfig(osmConfig({
|
|
|
|
build: {
|
|
|
|
minify: true
|
|
|
|
},
|
|
|
|
optimizeDeps: {
|
|
|
|
exclude: [
|
|
|
|
'@maicol07/inertia-mithril',
|
|
|
|
'@maicol07/mwc-card',
|
|
|
|
'@maicol07/mwc-layout-grid',
|
|
|
|
'@material/mwc-button',
|
|
|
|
'@material/mwc-checkbox',
|
|
|
|
'@material/mwc-circular-progress',
|
|
|
|
'@material/mwc-dialog',
|
|
|
|
'@material/mwc-drawer',
|
|
|
|
'@material/mwc-fab',
|
|
|
|
'@material/mwc-formfield',
|
|
|
|
'@material/mwc-icon-button',
|
|
|
|
'@material/mwc-icon-button-toggle',
|
|
|
|
'@material/mwc-linear-progress',
|
|
|
|
'@material/mwc-list',
|
|
|
|
'@material/mwc-menu',
|
|
|
|
'@material/mwc-select',
|
|
|
|
'@material/mwc-snackbar',
|
|
|
|
'@material/mwc-textarea',
|
|
|
|
'@material/mwc-textfield',
|
|
|
|
'@material/mwc-top-app-bar',
|
|
|
|
'async-wait-until',
|
2022-01-27 10:10:45 +01:00
|
|
|
'lodash-es',
|
2022-01-10 17:20:41 +01:00
|
|
|
'lit',
|
|
|
|
'lit/decorators.js',
|
|
|
|
'cash-dom',
|
|
|
|
'redaxios'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}))
|
|
|
|
// @ts-ignore
|
2022-01-07 14:38:18 +01:00
|
|
|
.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
|
|
|
|
}));
|