// const LineChart = Loadable(lazy(() => import('../views/charts/LineChart'))); // const…
- User
// const LineChart = Loadable(lazy(() => import('../views/charts/LineChart'))); // const GredientChart = Loadable(lazy(() => import('../views/charts/GredientChart'))); // const DoughnutChart = Loadable(lazy(() => import('../views/charts/DoughnutChart'))); // const AreaChart = Loadable(lazy(() => import('../views/charts/AreaChart'))); // const ColumnChart = Loadable(lazy(() => import('../views/charts/ColumnChart'))); // const CandlestickChart = Loadable(lazy(() => import('../views/charts/CandlestickChart'))); // const RadialbarChart = Loadable(lazy(() => import('../views/charts/RadialbarChart')));
i want to reduce bundle size. i have commented out the paths and components i dont use in my router file. i am using react, and vite. i dont want to delete the files that came with the template, but i dont want to include them in the build bundle. import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { resolve } from 'path'; import fs from 'fs/promises'; import svgr from '@svgr/rollup';
// Define your base URL and sub URL here const BASE_URL = 'https://ams.autobeatx.co.uk:8081'; const SUB_API_NAME = '/AMS';
// Active paths to include in the build const includePaths = [ // Layouts '../layouts/full/FullLayout', '../layouts/blank/BlankLayout', '../layouts/full/shared/loadable/Loadable',
// Core features '../views/dashboard/Modern', '../views/pages/hr-module/calendar/HolidayCalendar', '../views/apps/user-profile/UserProfile', './ModuleFeatures', './ProtectedRoute', './Unauthorized',
// Admin module '../views/pages/admin-module/AdminModule', '../views/pages/admin-module/firmManagement/FirmManagement', '../views/pages/admin-module/firmManagement/FirmDetails', '../views/pages/admin-module/firmManagement/FirmSchedulePicker', '../views/pages/admin-module/firmManagement/FeatureAssignmenttable', '../views/pages/admin-module/firmManagement/AttendanceMachineSelect',
// HR module '../views/pages/hr-module/HRModule', '../views/pages/hr-module/userManagement/EnrollEmployee', '../views/pages/hr-module/userManagement/EmployeeManagementTabs', '../views/pages/hr-module/deptManagement/', '../views/pages/hr-module/designationManagement/', '../views/pages/hr-module/holidayManagement/', '../views/pages/hr-module/userRightsManagement/',
// Attendance module '../views/pages/attendance-module/AttendanceModule', '../views/pages/attendance-module/manualAttendance/*',
// Authentication '../views/authentication/auth1/', '../views/authentication/auth2/', '../views/authentication/Error', '../views/authentication/Maintenance',
// Additional active modules '../views/pages/super-admin-module/TabbedDashboard', '../views/pages/report-module/', '../views/pages/leave-module/', '../views/pages/rota-module/*', '../views/pages/organization-module/OrganizationModule', ];
- Assistant