1 Star 0 Fork 5

紫木蓝星/camunda_modeler_logicflowify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vite.config.ts 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
import { resolve } from "path";
import { visualizer } from "rollup-plugin-visualizer";
import devtools from "solid-devtools/vite";
import { Plugin, defineConfig } from "vite";
import compress from "vite-plugin-compression";
import solidPlugin from "vite-plugin-solid";
function _resolve(dir: string) {
return resolve(__dirname, dir);
}
let addOnPlugin: Array<Plugin> = [];
if (process.env.NODE_ENV === "production") {
addOnPlugin.push(compress());
}
export default defineConfig({
base: "./",
plugins: [
devtools({
/* additional options */
autoname: true, // e.g. enable autoname
}),
solidPlugin(),
visualizer({
filename: "dist/stats.html",
}),
...addOnPlugin,
],
resolve: {
alias: {
"@": _resolve("src"),
},
},
server: {
port: 31000,
},
build: {
target: "esnext",
rollupOptions: {
output: {
manualChunks: {
// "lodash-es": ["lodash-es"],
"@logicflow/core": ["@logicflow/core"],
"@logicflow/extension": ["@logicflow/extension"],
},
},
},
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/zmlx/camunda_modeler_logicflowify.git
git@gitee.com:zmlx/camunda_modeler_logicflowify.git
zmlx
camunda_modeler_logicflowify
camunda_modeler_logicflowify
master

搜索帮助