Nestjs 修改dist目录
2024-10-10 08:24:16
修改tsconfig.json
{
"compilerOptions": {
"outDir": "./server-dist", // 这里
},
"exclude": ["node_modules", "server-dist" ] // 还有这里
}
tsconfig.build.json和package.json里面的一些脚本命令也改下
打包可以去掉.d.ts和.map文件
tsconfig.build.json:
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"declaration": false,
},
"exclude": ["node_modules", "test", "dist", "server-dist", "**/*spec.ts"]
}
最新文章
- JS中SetTimeOut和SetInterval方法的区别?
- Sql简单封装
- The property on could not be set to a 'Int16' value.You must set this property to a non-null value of type ‘Int32’.”
- 什么时候用Model,什么时候用Entity?[转载知乎-备忘]
- 使用NHibernate(7)-- 一对一 &;&; 一对多 &;&; 多对多
- Go2Shell 打开设置窗口
- Linux 与 unix shell编程指南——学习笔记
- POJ3071:Football(概率DP)
- java--照片和BYTE这些东西阵列
- 关于.NET,.NET Framework 和ASP.NET的总结
- Linux获取网络接口信息
- c# 获取客户端文件
- [CodeForces - 276A] Lunch Rush
- 第一章 Java Web工作原理
- 为什么用freemarker视图?
- Spring学习之AOP详解
- laya IDE 初始化设置
- springmvc与html之间的Json交互
- 【微服务架构】SpringCloud之Eureka(服务注册和服务发现基础篇)(二)
- javascript 常用DOM操作整理
热门文章
- loj1011愤怒的牛
- LOJ10078
- PL/SQL 遇到问题
- SparkStreaming直连方式读取kafka数据,使用MySQL保存偏移量
- ubuntu 安装新版的qq,可支持下载文件等常用功能
- 将将List json 转成List<;?>;实体
- Flink-v1.12官方网站翻译-P014-Flink Architecture
- Python爬虫笔记一(来自MOOC) Requests库入门
- Codeforces Round #673 (Div. 2) C. k-Amazing Numbers (DP,思维)
- Codeforces Round #501 (Div. 3) B. Obtaining the String (思维,字符串)