Optimize academy
This commit is contained in:
@@ -2,7 +2,14 @@ import { mountInertiaRoot } from './bootstrap'
|
||||
import React from 'react'
|
||||
import { createInertiaApp } from '@inertiajs/react'
|
||||
|
||||
const pages = import.meta.glob('./Pages/Moderation/**/*.jsx')
|
||||
const pages = import.meta.glob([
|
||||
'./Pages/Moderation/**/*.jsx',
|
||||
'./Pages/Admin/**/*.jsx',
|
||||
'!./Pages/Moderation/**/__tests__/**',
|
||||
'!./Pages/Moderation/**/*.test.jsx',
|
||||
'!./Pages/Admin/**/__tests__/**',
|
||||
'!./Pages/Admin/**/*.test.jsx',
|
||||
])
|
||||
|
||||
createInertiaApp({
|
||||
resolve: (name) => {
|
||||
@@ -17,4 +24,4 @@ createInertiaApp({
|
||||
setup({ el, App, props }) {
|
||||
mountInertiaRoot(el, App, props)
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user