add sync to leader dashboard new from google spreadsheet
This commit is contained in:
@@ -4,46 +4,46 @@ import path from "path";
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
host: "0.0.0.0",
|
||||
hmr: {
|
||||
host: 'localhost'
|
||||
host: "localhost",
|
||||
},
|
||||
watch: {
|
||||
usePolling: true
|
||||
}
|
||||
usePolling: true,
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'public/build',
|
||||
assetsDir: 'assets',
|
||||
manifest: true,
|
||||
outDir: "public/build",
|
||||
assetsDir: "assets",
|
||||
manifest: "manifest.json",
|
||||
// Optimasi untuk server dengan resource terbatas
|
||||
minify: 'terser',
|
||||
minify: "terser",
|
||||
chunkSizeWarningLimit: 1000,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
// Split vendor chunks untuk mengurangi memory usage
|
||||
vendor: ['bootstrap', 'moment', 'axios'],
|
||||
charts: ['apexcharts'],
|
||||
maps: ['leaflet', 'jsvectormap', 'gmaps'],
|
||||
ui: ['sweetalert2', 'flatpickr', 'quill', 'dropzone'],
|
||||
forms: ['gridjs', 'simplebar'],
|
||||
vendor: ["bootstrap", "moment", "axios"],
|
||||
charts: ["apexcharts"],
|
||||
maps: ["leaflet", "jsvectormap", "gmaps"],
|
||||
ui: ["sweetalert2", "flatpickr", "quill", "dropzone"],
|
||||
forms: ["gridjs", "simplebar"],
|
||||
// Group by functionality to reduce memory usage per chunk
|
||||
dashboards: [
|
||||
'resources/js/dashboards/bigdata.js',
|
||||
'resources/js/dashboards/pbg.js',
|
||||
'resources/js/dashboards/potentials/inside_system.js',
|
||||
'resources/js/dashboards/potentials/outside_system.js'
|
||||
"resources/js/dashboards/bigdata.js",
|
||||
"resources/js/dashboards/pbg.js",
|
||||
"resources/js/dashboards/potentials/inside_system.js",
|
||||
"resources/js/dashboards/potentials/outside_system.js",
|
||||
],
|
||||
data: [
|
||||
'resources/js/data/umkm/data-umkm.js',
|
||||
'resources/js/data/tourisms/data-tourisms.js',
|
||||
'resources/js/data/advertisements/data-advertisements.js'
|
||||
]
|
||||
"resources/js/data/umkm/data-umkm.js",
|
||||
"resources/js/data/tourisms/data-tourisms.js",
|
||||
"resources/js/data/advertisements/data-advertisements.js",
|
||||
],
|
||||
},
|
||||
entryFileNames: 'assets/[name]-[hash].js',
|
||||
chunkFileNames: 'assets/[name]-[hash].js',
|
||||
assetFileNames: 'assets/[name]-[hash].[ext]'
|
||||
entryFileNames: "assets/[name]-[hash].js",
|
||||
chunkFileNames: "assets/[name]-[hash].js",
|
||||
assetFileNames: "assets/[name]-[hash].[ext]",
|
||||
},
|
||||
// Optimasi memory - lebih konservatif
|
||||
maxParallelFileOps: 1,
|
||||
@@ -54,9 +54,9 @@ export default defineConfig({
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_debugger: true
|
||||
}
|
||||
}
|
||||
drop_debugger: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -115,6 +115,7 @@ export default defineConfig({
|
||||
"resources/js/dashboards/bigdata.js",
|
||||
"resources/js/dashboards/potentials/inside_system.js",
|
||||
"resources/js/dashboards/potentials/outside_system.js",
|
||||
"resources/js/dashboards/leader.js",
|
||||
// roles
|
||||
"resources/js/roles/index.js",
|
||||
"resources/js/roles/create.js",
|
||||
@@ -186,6 +187,6 @@ export default defineConfig({
|
||||
],
|
||||
// Limit memory usage
|
||||
esbuild: {
|
||||
target: 'es2015'
|
||||
}
|
||||
});
|
||||
target: "es2015",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user