angular - 如何排除 angular.json 中的脚本文件?
问题描述
我正在用 Angular 6 开发一个项目,我有一些第三方 js 文件需要在 .ts 文件中使用,所以我在 angular.json 的脚本数组中添加了这些文件。
角.json
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"src/thirdParty/libs/localize.js",
"src/thirdParty/libs/index.js"
]
并且我将最后两个脚本文件用于开发而不是用于生产,有没有办法在 ng build 中排除这两个文件?
谢谢
解决方案
推荐阅读
- spring-boot - 使用 apache camel reslet 框架使用 Restful webserive 的问题
- excel - 隐藏包含特定文本的单元格下方的所有行
- reactjs - 根据用户权限隔离 React 上下文提供者的最佳方法?
- pdf.js - PDF.js - 如何获取当前可见的页面?
- python - 一次将 API 响应插入多行 - psycopg2
- ruby - Ruby - 基于相似哈希键的哈希数组
- swift - Swift 闭包的奇怪行为
- sql - 我在这里想念什么?加入声明/分组?
- java - 如何使用嵌套地图功能修复“流已被操作或关闭”错误
- button - 如何使用按钮启动预定脚本?