forked from Ivasoft/geovisio-website
29 lines
555 B
JavaScript
29 lines
555 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue({
|
|
template: {
|
|
compilerOptions: {
|
|
isCustomElement: (tag) => {
|
|
return tag.startsWith('router-link')
|
|
}
|
|
}
|
|
}
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
}
|
|
},
|
|
test: {
|
|
deps: {
|
|
inline: ['moment']
|
|
}
|
|
}
|
|
})
|