- 自定义插件
- 中间件
- 热更新
- glob 导入
- 开箱即用的 typescript
- env
- 路径别名
- npm create lent
// __lent__inject__ leetcode?type=tree&demo=[22,2,3] done
const demo0 = new TreeNode(22, new TreeNode(2), new TreeNode(3));
// __lent__inject__ leetcode?type=treenode&demo=[6,1] done
const demo1 = new TreeNode(6, new TreeNode(1));
import { defineConfig } from "lent";
import {
lentLeetCode,
injectLeetCodePlugin,
injectQueryPlugin,
} from "@lent/leet-code";
export default defineConfig({
port: 3099,
root: "./src",
middleware: [lentLeetCode],
plugins: [
injectQueryPlugin({
include: "./index.ts",
}),
injectLeetCodePlugin(),
],
});