1
0
Fork 0
mirror of https://github.com/Findus23/devicedetector.net.git synced 2024-09-19 15:43:46 +02:00
devicedetector.net/client/vite.config.ts

38 lines
1 KiB
TypeScript
Raw Normal View History

2023-01-06 18:46:29 +01:00
import vue from '@vitejs/plugin-vue'
2022-03-08 22:53:33 +01:00
import {defineConfig} from 'vite'
import pluginRewriteAll from 'vite-plugin-rewrite-all'
2023-01-06 18:46:29 +01:00
import Components from 'unplugin-vue-components/vite'
import {BootstrapVue3Resolver} from "unplugin-vue-components/resolvers";
2022-03-08 22:53:33 +01:00
export default defineConfig({
plugins: [
2023-01-06 18:47:07 +01:00
vue({
template: {
transformAssetUrls: {
includeAbsolute: false
}
}
}),
2023-01-06 18:46:29 +01:00
Components({
resolvers: [BootstrapVue3Resolver()]
}),
2022-03-08 22:53:33 +01:00
pluginRewriteAll()
],
server: {
proxy: {
"/detect": "http://local.devicedetector.net/",
"/supported": "http://local.devicedetector.net/",
"/icons": "http://local.devicedetector.net/",
"/from-header": "http://local.devicedetector.net/",
2022-03-08 22:53:33 +01:00
"/version.json": "http://local.devicedetector.net/"
}
},
build: {
sourcemap: true,
2023-01-06 18:46:29 +01:00
target: "es2019",
rollupOptions:{
2023-01-06 18:47:07 +01:00
// external: /icons.*/
2023-01-06 18:46:29 +01:00
}
2022-03-08 22:53:33 +01:00
}
})