![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
egg
mkmin
主要对新手入门
展开
-
egg:使用ejs(ts)
egg使用ejs的方法很多博客都有,但是都是js版本的,也是偶然再github上看到了一些人ts版本的egg中用了插件, 这才了解到怎么再js的版本基础上改动,所以写一下,方便别人 项目使用ejs 安装ejs npm install -S egg-view-ejs 配置config/plugin.ts const plugin: EggPlugin = { static: true, // mongoose ejs: { enable: true, package: 'egg原创 2020-09-24 15:26:38 · 639 阅读 · 0 评论 -
egg:搭建一个简单的egg项目(ts)
搭建一个空白的EGG项目 全局搭建eggjs的脚手架 npm install egg-init -g 初始化eggjs项目 npm init egg --type=ts 安装依赖 npm i 启动项目 npm run dev原创 2020-09-24 15:16:04 · 1134 阅读 · 0 评论