22 lines
379 B
TypeScript
22 lines
379 B
TypeScript
![]() |
import { defineConfig } from 'vite'
|
||
|
import solidPlugin from 'vite-plugin-solid'
|
||
|
import { resolve } from 'path'
|
||
|
|
||
|
export default defineConfig({
|
||
|
plugins: [solidPlugin()],
|
||
|
server: {
|
||
|
port: 3005,
|
||
|
},
|
||
|
build: {
|
||
|
target: 'esnext',
|
||
|
},
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': resolve(__dirname, './src'),
|
||
|
},
|
||
|
},
|
||
|
optimizeDeps: {
|
||
|
include: ['models', 'utils'],
|
||
|
},
|
||
|
})
|