AngularCli:禁用缩小 [英] AngularCli: disable minification

查看:29
本文介绍了AngularCli:禁用缩小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 AngularCli 中禁用缩小?

Is there a way to disable the minification in AngularCli?

在我启动命令 ng build --prod 后,我需要将所有 files.js 放在 dist 文件夹中,并使其清晰易读.

After I launch the command ng build --prod I need to have all files.js, in dist folder, separate and legible.

推荐答案

只需:

ng build --prod --optimization=false

似乎可以做到.有关更多信息,请参阅:https://github.com/angular/angular-cli/wiki/构建

That seems to do it. For more information see: https://github.com/angular/angular-cli/wiki/build

这对角度 6 有效.*

This is valid for angular 6.*

这篇关于AngularCli:禁用缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆