mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2025-01-29 01:28:24 +00:00
36 lines
651 B
JavaScript
36 lines
651 B
JavaScript
import path from 'path'
|
|
import { createVuePlugin } from 'vite-plugin-vue2'
|
|
import { defineConfig } from 'vite'
|
|
import replace from '@rollup/plugin-replace'
|
|
|
|
import { version } from './package.json'
|
|
|
|
export default defineConfig({
|
|
publicDir: 'static',
|
|
build: {
|
|
assetsDir: '',
|
|
outDir: 'public'
|
|
},
|
|
plugins: [
|
|
createVuePlugin(),
|
|
replace({
|
|
__VER__: JSON.stringify(version)
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: '@',
|
|
replacement: path.resolve(__dirname, '/src')
|
|
},
|
|
{
|
|
find: '@components',
|
|
replacement: path.resolve(__dirname, '/src/components')
|
|
}
|
|
]
|
|
},
|
|
optimizeDeps: {
|
|
include: ['@vue/composition-api']
|
|
}
|
|
})
|