chore: fixed config
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
import { getProxyOptions } from 'frappe-ui/src/utils/vite-dev-server'
|
||||
import { webserver_port } from '../../../sites/common_site_config.json'
|
||||
import frappeui from 'frappe-ui/vite'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: {
|
||||
port: 8080,
|
||||
proxy: getProxyOptions({ port: webserver_port }),
|
||||
},
|
||||
plugins: [frappeui(), vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, 'src'),
|
||||
@@ -20,6 +15,13 @@ export default defineConfig({
|
||||
outDir: `../${path.basename(path.resolve('..'))}/public/frontend`,
|
||||
emptyOutDir: true,
|
||||
target: 'es2015',
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'frappe-ui': ['frappe-ui'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ['frappe-ui > feather-icons', 'showdown', 'engine.io-client'],
|
||||
|
||||
Reference in New Issue
Block a user