mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import commonjs from 'vite-plugin-commonjs'
|
|
import Icons from 'unplugin-icons/vite'
|
|
import Components from 'unplugin-vue-components/vite'
|
|
import IconsResolve from 'unplugin-icons/resolver'
|
|
import { BootstrapVueNextResolver } from 'bootstrap-vue-next'
|
|
|
|
const path = require('path')
|
|
|
|
export default defineConfig({
|
|
base: '/admin/',
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 8080,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
assets: path.join(__dirname, 'src/assets'),
|
|
},
|
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
},
|
|
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
compatConfig: {
|
|
MODE: 2,
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
Components({
|
|
resolvers: [IconsResolve(), BootstrapVueNextResolver()],
|
|
dts: true,
|
|
}),
|
|
Icons({
|
|
compiler: 'vue3',
|
|
}),
|
|
commonjs(),
|
|
],
|
|
build: {
|
|
outDir: 'build',
|
|
},
|
|
})
|