Skip to content
Snippets Groups Projects
Select Git revision
  • b38159f9f6a42830a250893c2fa8ad21db02c636
  • master default protected
  • renovate/configure
  • v3.1.4
  • v3.1.3
  • v3.1.2
  • v3.1.1
  • v3.1.0
  • v3.0.4
  • v3.0.3
  • v3.0.1
  • v3.0.0
12 results

vite.config.ts

Blame
  • user avatar
    Alexis Faizeau authored
    b38159f9
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    vite.config.ts 762 B
    import { defineConfig } from "vite";
    import { getMapsOptimizers, getMapsScripts } from "wa-map-optimizer-vite";
    
    export default defineConfig({
        base: "./",
        build: {
            rollupOptions: {
                input: {
                    index: "./index.html",
                    ...getMapsScripts(),
                },
            },
        },
        plugins: [...getMapsOptimizers()],
        server: {
            host: "localhost",
            headers: {
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
                "Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization",
                "Cache-Control": "no-cache, no-store, must-revalidate",
            },
            open: "/",
        },
    });