50 lines
829 B
TypeScript
50 lines
829 B
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import AutoImport from 'unplugin-auto-import/vite'
|
|
|
|
export default defineConfig({
|
|
base: './',
|
|
publicDir: 'public',
|
|
build: {
|
|
target: ['chrome74']
|
|
},
|
|
server: {
|
|
proxy: {
|
|
// '/proxy': 'http://192.168.1.30'
|
|
}
|
|
},
|
|
resolve: {
|
|
dedupe: ['@cutos/core'],
|
|
alias: {
|
|
'@': '/src'
|
|
}
|
|
},
|
|
define: {},
|
|
plugins: [
|
|
vue(),
|
|
AutoImport({
|
|
include: [
|
|
/\.[tj]sx?$/,
|
|
/\.vue$/,
|
|
/\.vue\?vue/,
|
|
/\.md$/
|
|
],
|
|
imports: ['vue'],
|
|
vueTemplate: true,
|
|
cache: true,
|
|
dts: false
|
|
})
|
|
],
|
|
optimizeDeps: {
|
|
esbuildOptions: {
|
|
define: {
|
|
global: 'globalThis'
|
|
},
|
|
target: 'es2015',
|
|
supported: {
|
|
bigint: true
|
|
}
|
|
}
|
|
}
|
|
})
|