javascript - ng build --prod 不生成 dist 文件夹(角度 7)
问题描述
- 运行ng build生成 dist 文件夹
- 运行ng build --prod成功但不生成
已重新加载 VS 代码,刷新,检查 angular cli,但无济于事。
可能有用的angular.json片段:
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
},
解决方案
推荐阅读
- ms-access - 如何将表单中的现有字段添加到 Microsoft Access 中的现有表中
- flutter - 如何在颤动的大小框中添加两个参数?
- python - 如何通过python呈现'如果trs中的tr [a]有一个名称为'hot'的标签?
- angular - 角度地理定位
- javascript - d3.js - 带有交互式图例悬停问题的饼图
- python-3.x - 使用 Numba nopython 模式时出现 TypeError
- beautifulsoup - 如何使用 BeautifulSoup 获取涵盖 h3 的类中的元素
- amazon-web-services - ECS - 目标类型ip与任务定义中指定的桥接网络模式不兼容
- javascript - 如何在 Vue.JS HTML 标签中绑定动态 id
- laravel - Laravel - 如何解决:当值为 NULL 时尝试获取非对象的属性“id”