7 Star 68 Fork 31

Cassie/cool_editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.js 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
李兴栋 提交于 2023-07-12 15:21 +08:00 . init wasm
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
const path = require("path");
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: [
{
find: "@",
replacement: path.resolve(__dirname, "src")
}
]
},
plugins: [vue(), wasm(), topLevelAwait()],
build: {
minify: "terser",
brotliSize: false,
sourcemap: false,
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true
}
}
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/stringlxd/cool_emr.git
git@gitee.com:stringlxd/cool_emr.git
stringlxd
cool_emr
cool_editor
main

搜索帮助