23 lines
543 B
JavaScript
23 lines
543 B
JavaScript
|
import { defineConfig } from 'vite'
|
||
|
import vue from '@vitejs/plugin-vue'
|
||
|
import path from 'path'
|
||
|
import frappeui from 'frappe-ui/vite'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig({
|
||
|
plugins: [frappeui(), vue()],
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': path.resolve(__dirname, 'src'),
|
||
|
},
|
||
|
},
|
||
|
build: {
|
||
|
outDir: `../${path.basename(path.resolve('..'))}/public/frontend`,
|
||
|
emptyOutDir: true,
|
||
|
target: 'es2015',
|
||
|
},
|
||
|
optimizeDeps: {
|
||
|
include: ['frappe-ui > feather-icons', 'showdown', 'engine.io-client'],
|
||
|
},
|
||
|
})
|