mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Tested on Orange Pi 5 and Cool Pi 4B. Merge with parts of the OpenCV DNN PR. Adds support for YOLOv5s models for Rockchip CPUs with a NPU. Right now hard coded to a note model from alex_idk. Very much still incubating and largely untested.
41 lines
858 B
TypeScript
41 lines
858 B
TypeScript
import { fileURLToPath, URL } from "node:url";
|
|
|
|
import { defineConfig } from "vite";
|
|
import Vue2 from "@vitejs/plugin-vue2";
|
|
import Components from "unplugin-vue-components/vite";
|
|
import { VuetifyResolver } from "unplugin-vue-components/resolvers";
|
|
|
|
export default defineConfig({
|
|
base: "./",
|
|
plugins: [
|
|
Vue2(),
|
|
Components({
|
|
resolvers: [VuetifyResolver()],
|
|
dts: true,
|
|
transformer: "vue2",
|
|
types: [
|
|
{
|
|
from: "vue-router",
|
|
names: ["RouterLink", "RouterView"]
|
|
}
|
|
],
|
|
version: 2.7
|
|
})
|
|
],
|
|
css: {
|
|
preprocessorOptions: {
|
|
sass: {
|
|
additionalData: ['@import "@/assets/styles/variables.scss"', ""].join("\n")
|
|
}
|
|
}
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url))
|
|
}
|
|
},
|
|
build: {
|
|
sourcemap: true
|
|
}
|
|
});
|