mirror of
https://github.com/Codennnn/vue-color-avatar.git
synced 2024-12-22 20:22:39 +00:00
34 lines
690 B
TypeScript
34 lines
690 B
TypeScript
|
import vue from '@vitejs/plugin-vue'
|
||
|
import path from 'path'
|
||
|
import { visualizer } from 'rollup-plugin-visualizer'
|
||
|
import { defineConfig } from 'vite'
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig(({ mode }) => ({
|
||
|
plugins: [
|
||
|
vue(),
|
||
|
...(mode === 'prerelease'
|
||
|
? [
|
||
|
visualizer({
|
||
|
open: true,
|
||
|
gzipSize: true,
|
||
|
brotliSize: true,
|
||
|
template: 'sunburst',
|
||
|
}),
|
||
|
]
|
||
|
: []),
|
||
|
],
|
||
|
|
||
|
resolve: {
|
||
|
alias: {
|
||
|
'@': path.resolve(__dirname, './src'),
|
||
|
},
|
||
|
},
|
||
|
|
||
|
define: {
|
||
|
__VUE_I18N_FULL_INSTALL__: false,
|
||
|
__VUE_I18N_LEGACY_API__: false,
|
||
|
__INTLIFY_PROD_DEVTOOLS__: false,
|
||
|
},
|
||
|
}))
|