openstamanager/vite.config.ts

78 lines
2.0 KiB
TypeScript
Raw Normal View History

2021-12-30 15:12:03 +01:00
/* eslint-disable import/no-extraneous-dependencies */
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';
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',
'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
}));