修改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"]
}

最新文章

  1. JS中SetTimeOut和SetInterval方法的区别?
  2. Sql简单封装
  3. The property on could not be set to a 'Int16' value.You must set this property to a non-null value of type ‘Int32’.”
  4. 什么时候用Model,什么时候用Entity?[转载知乎-备忘]
  5. 使用NHibernate(7)-- 一对一 && 一对多 && 多对多
  6. Go2Shell 打开设置窗口
  7. Linux 与 unix shell编程指南——学习笔记
  8. POJ3071:Football(概率DP)
  9. java--照片和BYTE这些东西阵列
  10. 关于.NET,.NET Framework 和ASP.NET的总结
  11. Linux获取网络接口信息
  12. c# 获取客户端文件
  13. [CodeForces - 276A] Lunch Rush
  14. 第一章 Java Web工作原理
  15. 为什么用freemarker视图?
  16. Spring学习之AOP详解
  17. laya IDE 初始化设置
  18. springmvc与html之间的Json交互
  19. 【微服务架构】SpringCloud之Eureka(服务注册和服务发现基础篇)(二)
  20. javascript 常用DOM操作整理

热门文章

  1. loj1011愤怒的牛
  2. LOJ10078
  3. PL/SQL 遇到问题
  4. SparkStreaming直连方式读取kafka数据,使用MySQL保存偏移量
  5. ubuntu 安装新版的qq,可支持下载文件等常用功能
  6. 将将List json 转成List<?>实体
  7. Flink-v1.12官方网站翻译-P014-Flink Architecture
  8. Python爬虫笔记一(来自MOOC) Requests库入门
  9. Codeforces Round #673 (Div. 2) C. k-Amazing Numbers (DP,思维)
  10. Codeforces Round #501 (Div. 3) B. Obtaining the String (思维,字符串)