mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
31 lines
702 B
TypeScript
31 lines
702 B
TypeScript
import {fileURLToPath, URL} from 'node:url'
|
|
|
|
import {defineConfig} from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
base: "./",
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: tag => tag == 'model-viewer'
|
|
}
|
|
}
|
|
}),
|
|
vueJsx(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
// @ts-ignore
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
assetsDir: '.',
|
|
cssCodeSplit: false, // Small enough to inline
|
|
}
|
|
})
|