- Enable PHP OPcache in Docker (256MB, dev-friendly settings) - Enable gzip compression in nginx + immutable caching for /build/ assets - Reduce fonts to latin-only subsets (from 28 files to ~6) - Lazy-load Vue pages via dynamic imports (D3 no longer loaded on login) - MetroMap chunk split out separately (62KB only when needed) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
18 lines
486 B
JavaScript
18 lines
486 B
JavaScript
import { createApp, h } from 'vue'
|
|
import { createInertiaApp } from '@inertiajs/vue3'
|
|
import { createPinia } from 'pinia'
|
|
|
|
createInertiaApp({
|
|
resolve: name => {
|
|
const pages = import.meta.glob('./Pages/**/*.vue')
|
|
return pages[`./Pages/${name}.vue`]()
|
|
},
|
|
setup({ el, App, props, plugin }) {
|
|
const pinia = createPinia()
|
|
createApp({ render: () => h(App, props) })
|
|
.use(plugin)
|
|
.use(pinia)
|
|
.mount(el)
|
|
},
|
|
})
|