|
|
@ -2,10 +2,15 @@ import { defineConfig } from "vite" |
|
|
|
import reactRefresh from "@vitejs/plugin-react-refresh" |
|
|
|
// import WindiCSS from "vite-plugin-windicss"
|
|
|
|
const { resolve, join } = require("path") |
|
|
|
// import electron from "vitejs-plugin-electron"
|
|
|
|
import electron from "vitejs-plugin-electron" |
|
|
|
import { minifyHtml, injectHtml } from "vite-plugin-html" |
|
|
|
|
|
|
|
console.log(process.env.NO); |
|
|
|
console.log(process.env.NO) |
|
|
|
|
|
|
|
let isDev = process.env.NODE_ENV === "development" |
|
|
|
|
|
|
|
let plugins = [] |
|
|
|
// plugins.push(electron())
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({ |
|
|
@ -38,8 +43,9 @@ export default defineConfig({ |
|
|
|
"@root": __dirname, |
|
|
|
}, |
|
|
|
}, |
|
|
|
// electron()
|
|
|
|
//
|
|
|
|
plugins: [ |
|
|
|
...plugins, |
|
|
|
reactRefresh(), |
|
|
|
minifyHtml(), |
|
|
|
injectHtml({ |
|
|
|