feat: init
This commit is contained in:
25
projects/translate-h5/vite.config.ts
Normal file
25
projects/translate-h5/vite.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import path from "path";
|
||||
import basicSsl from "@vitejs/plugin-basic-ssl";
|
||||
export default defineConfig({
|
||||
// plugins: [react()],
|
||||
plugins: [react(), basicSsl()],
|
||||
server: {
|
||||
https: {},
|
||||
port: 3000,
|
||||
host: "0.0.0.0",
|
||||
open: true,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
"@shared": path.resolve(__dirname, "../../packages/shared/src"),
|
||||
"@hooks": path.resolve(__dirname, "../../packages/hooks/src"),
|
||||
"@utils": path.resolve(__dirname, "../../packages/utils/src"),
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: ["@shared", "@hooks", "@utils"],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user