博客
关于我
Angular Tracy 小笔记 其他 dos 命令,发布
阅读量:674 次
发布时间:2019-03-15

本文共 651 字,大约阅读时间需要 2 分钟。

其他命令:

  • Angular Material: ng add @angular/material
  • Add PWA support : ng add @angular/pwa
  • Add Dependency : ng add _____
  • Run and Watch Tests : ng test
  • Build for Production : ng build --prod

调试

F12 -> Source -> webpack -> 点儿 -> src -> app 找到我们要调试的文件,设置断点,可以查看逻辑错误

我们也可以利用谷歌插件 Augury "" 此时 F2 后, 会有一个tab 叫 Augury

Publish 发布项目

部署angular 项目在 xampp 中 将index.html中的base href改为如下内容

<!-- 

-->

<!-- ng build时使用下面这个 -->
<base href="./">
给app.moudle.ts文件中添加如下内容
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
...
providers: [ {provide: LocationStrategy, useClass: HashLocationStrategy}],
发布 ng build --prod --aot
项目目录,此时多了一个dist文件夹 (在 e2e 上面)

转载地址:http://nizqz.baihongyu.com/

你可能感兴趣的文章
Nacos编译报错NacosException: endpoint is blank
查看>>
nacos自动刷新配置
查看>>
nacos运行报错问题之一
查看>>
Nacos部署中的一些常见问题汇总
查看>>
NACOS部署,微服务框架之NACOS-单机、集群方式部署
查看>>
Nacos配置Mysql数据库
查看>>
Nacos配置中心中配置文件的创建、微服务读取nacos配置中心
查看>>
Nacos配置中心集群原理及源码分析
查看>>
nacos配置在代码中如何引用
查看>>
nacos配置新增不成功
查看>>
nacos配置自动刷新源码解析
查看>>
nacos集成分布式事务插件Seata的序列化问题,实际上是Seata本身存在bug!!
查看>>
Nacos集群搭建
查看>>
nacos集群搭建
查看>>
nacos集群网络分区对的影响和运维方式
查看>>
nacos集群节点故障对应用的影响以及应急方法
查看>>
nacos集群配置详解
查看>>
Nagios 3.0 Jumpstart Guide For Linux – Overview, Installation and Configuration
查看>>
nagios 实时监控 iptables 状态
查看>>
nagios+cacti整合
查看>>