78 lines
2.0 KiB
TypeScript
78 lines
2.0 KiB
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import osmConfig from '@openstamanager/vite-config';
|
|
import {defineConfig} from 'laravel-vite';
|
|
import {VitePWA} from 'vite-plugin-pwa';
|
|
|
|
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',
|
|
'lodash-es',
|
|
'lit',
|
|
'lit/decorators.js',
|
|
'cash-dom',
|
|
'redaxios'
|
|
]
|
|
}
|
|
}))
|
|
// @ts-ignore
|
|
.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
|
|
}));
|