- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Angular CLI 有一个名为 --minimal
的选项.它有什么作用,它在哪里记录?命令 ng help new
很少谈论它
--minimal (Boolean) (Default: false) Should create a minimal app.
aliases: --minimal
最佳答案
当前截至 2017 年 7 月 31 日 一个普通的 Angular 应用会生成 5 个目录、26 个文件。一个 --minimal
生成 4 directories, 13 files
.区别? --minimal
通过启用其他一些选项来排除生成多个文件。
--skip-tests
:停止生成测试(即 e2e、karma.conf.js
、protractor.conf.js
和 *.spec.
文件),包括 tsconfig.spec.json
, app.component.spec.ts
--inline-style
: 停止生成外部 css stub ,而是在 .ts
中保留一个空字符串文件。 --inline-template
: 停止生成外部 html,而是将其保留在 template
中.ts
中的变量文件。 README.md
--minimal
生成的示例
my-app/
├── e2e
│ ├── app.e2e-spec.ts
│ ├── app.po.ts
│ └── tsconfig.e2e.json
├── karma.conf.js
├── package.json
├── package-lock.json
├── protractor.conf.js
├── README.md
├── src
│ ├── app
│ │ ├── app.component.css
│ │ ├── app.component.html
│ │ ├── app.component.spec.ts
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── assets
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── favicon.ico
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.css
│ ├── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.spec.json
│ └── typings.d.ts
├── tsconfig.json
└── tslint.json
--minimal
执行以下操作
├── package.json
├── package-lock.json
├── src
│ ├── app
│ │ ├── app.component.ts
│ │ └── app.module.ts
│ ├── assets
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.css
│ ├── tsconfig.app.json
│ └── typings.d.ts
└── tsconfig.json
关于angular-cli - --minimal 在 angular-cli `ng new` 中有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45429245/
今天有小伙伴给我留言问到,try{...}catch(){...}是什么意思?它用来干什么? 简单的说 他们是用来捕获异常的 下面我们通过一个例子来详细讲解下
我正在努力提高网站的可访问性,但我不知道如何在页脚中标记社交媒体链接列表。这些链接指向我在 facecook、twitter 等上的帐户。我不想用 role="navigation" 标记这些链接,因
说现在是 6 点,我有一个 Timer 并在 10 点安排了一个 TimerTask。之后,System DateTime 被其他服务(例如 ntp)调整为 9 点钟。我仍然希望我的 TimerTas
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我就废话不多说了,大家还是直接看代码吧~ ? 1
Maven系列1 1.什么是Maven? Maven是一个项目管理工具,它包含了一个对象模型。一组标准集合,一个依赖管理系统。和用来运行定义在生命周期阶段中插件目标和逻辑。 核心功能 Mav
我是一名优秀的程序员,十分优秀!