calque/app.config.ts
2024-10-28 14:15:41 +01:00

33 lines
905 B
TypeScript

import { defineConfig } from "@solidjs/start/config";
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
vite: {
plugins: [
VitePWA({
mode: 'development',
// srcDir: 'src',
// filename: 'claims-sw.ts',
strategies: 'injectManifest',
registerType: 'autoUpdate',
base: '/',
manifest: {
name: 'Translation tool',
short_name: 'T_tool',
theme_color: '#f0f',
icons: [],
},
devOptions: {
enabled: true,
type: 'module',
navigateFallback: 'index.html',
},
}),
],
},
solid: {
babel: {
compact: true,
},
},
});