calque/app.config.ts
Chris Kruining 3a79fd4488
added CSP
2024-11-07 09:49:21 +01:00

41 lines
1 KiB
TypeScript

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