COGNHACKER - LAB
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
789 B

  1. import { defineConfig } from "vite";
  2. import { getMapsOptimizers, getMapsScripts } from "wa-map-optimizer-vite";
  3. export default defineConfig({
  4. base: "./",
  5. build: {
  6. rollupOptions: {
  7. input: {
  8. index: "./index.html",
  9. ...getMapsScripts("./maps"),
  10. },
  11. },
  12. },
  13. plugins: [...getMapsOptimizers(undefined, "./maps")],
  14. server: {
  15. host: "localhost",
  16. headers: {
  17. "Access-Control-Allow-Origin": "*",
  18. "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
  19. "Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization",
  20. "Cache-Control": "no-cache, no-store, must-revalidate",
  21. },
  22. open: "/",
  23. },
  24. });