This commit is contained in:
commit
75f4febcf9
45 changed files with 9206 additions and 0 deletions
22
vite.config.js
Normal file
22
vite.config.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import react from "@vitejs/plugin-react";
|
||||
import { defineConfig } from "vite";
|
||||
import { join } from "path";
|
||||
|
||||
const srcRoot = join(__dirname, "src/vite");
|
||||
|
||||
export default defineConfig({
|
||||
root: srcRoot,
|
||||
base: "./",
|
||||
plugins: [react()],
|
||||
build: {
|
||||
outDir: join(srcRoot, "../../dist"),
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
port: 8080,
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: ["path"],
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue