2 Star 0 Fork 128

wessongao / PlayEdu学员PC界面

forked from PlayEdu / PlayEdu学员PC界面 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 575 Bytes
一键复制 编辑 原始数据 按行查看 历史
xxx 提交于 2023-09-21 10:32 . 兼容安卓钉钉
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import gzipPlugin from "rollup-plugin-gzip";
import legacy from "@vitejs/plugin-legacy";
// https://vitejs.dev/config/
export default defineConfig({
server: {
host: "0.0.0.0",
port: 9797,
},
plugins: [
react(),
legacy({
targets: ["chrome 52"],
additionalLegacyPolyfills: ["regenerator-runtime/runtime"],
renderLegacyChunks: true,
modernPolyfills: true,
}),
],
build: {
rollupOptions: {
plugins: [gzipPlugin()],
},
},
});
TypeScript
1
https://gitee.com/wessongao/frontend.git
git@gitee.com:wessongao/frontend.git
wessongao
frontend
PlayEdu学员PC界面
main

搜索帮助