|
import { sveltekit } from "@sveltejs/kit/vite";
|
|
import { defineConfig } from "vite";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [sveltekit()],
|
|
ssr: {
|
|
noExternal: ["clevertap-web-sdk"],
|
|
},
|
|
optimizeDeps: {
|
|
include: ["vanilla-cookieconsent"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
$components: "/src/components",
|
|
$ui: "/src/lib/ui-elements",
|
|
$assets: "/src/assets",
|
|
$route: "/src/routes/old",
|
|
$pagesections: "/src/routes/page-sections",
|
|
$chatvideos: "../../assets/chat-videos",
|
|
$backgrounds: "/src/assets/backgrounds",
|
|
$icons: "../../assets/icons",
|
|
$iconsDir: "../assets/icons",
|
|
$image: "/src/assets/image-elements",
|
|
$section: "./page-sections",
|
|
$constants: path.resolve("./src/constants"),
|
|
},
|
|
},
|
|
});
|
|
|