关于ng build预编译和给文件创建快捷链接

1.The Angular CLI requires a minimum Node.js version of either v12.14 or v14.15.
Please update your Node.js version or visit https://nodejs.org/ for additional instructions.
时。
使用

npx ng build --prod

ng build 常规的压缩操作 代码体积最大

ng build --aot angular预编译 代码体积较小

ng build --prod angular预编译 代码体积最小,访问速度最快

npx ng build --prod --watch
//实时监控改动后自动编译

作者:嘶吼
链接:https://www.zhihu.com/question/327989736/answer/787995048
来源:知乎

npm的思路大概是这样的:

  1. 买个服务器作为代码仓库(repository),在里面放所有需要被共享的代码
  2. 发邮件通知 jQuery 、Bootstrap 、Underscore 的作者使用 npm publish 把代码提交到 repository 上,分别取名 jquery、bootstrap 和 underscore(注意大小写)。
  3. 社区里的其他人如果想使用这些代码,就把 jquery、bootstrap 和 underscore 写到 package.json 里,然后运行 npm install ,npm 就会帮他们下载代码。
  4. 下载完的代码出现在
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值