gpu-compute-chain/vue/vite.config.ts

34 lines
770 B
TypeScript
Raw Normal View History

2022-08-25 16:51:14 -07:00
import { nodeResolve } from '@rollup/plugin-node-resolve'
import vue from '@vitejs/plugin-vue'
import { Buffer } from 'buffer'
import { defineConfig } from 'vite'
import { dynamicImport } from 'vite-plugin-dynamic-import'
import envCompatible from 'vite-plugin-env-compatible'
// https://vitejs.dev/config/
export default defineConfig({
define: {
global: {
Buffer: Buffer
}
},
server: {
watch: {
ignored: [
'!**/node_modules/@starport/vue/src/**',
'!**/node_modules/@starport/vuex/src/**'
]
}
},
plugins: [vue(), nodeResolve(), dynamicImport(), envCompatible()],
optimizeDeps: {
include: [
'gradient-avatar',
'crypto-js',
'axios',
'qrcode',
'@cosmjs/encoding'
]
}
})