COGNHACKER - LAB
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

26 rindas
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. });