Initial commit of adonisjs boilerplate
This commit is contained in:
19
vite.config.ts
Normal file
19
vite.config.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { getDirname } from '@adonisjs/core/helpers'
|
||||
import inertia from '@adonisjs/inertia/client'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import adonisjs from '@adonisjs/vite/client'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [inertia({ ssr: { enabled: true, entrypoint: 'inertia/app/ssr.ts' } }), vue(), adonisjs({ entrypoints: ['inertia/app/app.ts'], reload: ['resources/views/**/*.edge'] })],
|
||||
|
||||
/**
|
||||
* Define aliases for importing modules from
|
||||
* your frontend code
|
||||
*/
|
||||
resolve: {
|
||||
alias: {
|
||||
'~/': `${getDirname(import.meta.url)}/inertia/`,
|
||||
},
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user