Marketing Website

This commit is contained in:
Desktop
2025-11-13 16:51:48 +05:00
parent 224e32230c
commit 86f6886a13
27 changed files with 2149 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import { resolve } from "path";
// https://vite.dev/config/
export default defineConfig(({ mode }) => {
@@ -56,6 +57,10 @@ export default defineConfig(({ mode }) => {
cssCodeSplit: true,
// Optimize chunk size
rollupOptions: {
input: {
main: resolve(__dirname, "index.html"),
marketing: resolve(__dirname, "marketing.html"),
},
output: {
// Manual chunk splitting for better code splitting
manualChunks: (id) => {
@@ -129,6 +134,13 @@ export default defineConfig(({ mode }) => {
return `page-${pageName.toLowerCase()}`;
}
}
if (id.includes('/marketing/')) {
const match = id.match(/\/marketing\/([^/]+)/);
if (match) {
const sectionName = match[1];
return `marketing-${sectionName.toLowerCase()}`;
}
}
// Split icons into separate chunk (lazy load)
if (id.includes('/icons/') && id.endsWith('.svg')) {
return 'icons';