加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

我的webpack配置文件在angular 2 cli中在哪里?

发布时间:2020-12-17 17:32:51 所属栏目:安全 来源:网络整理
导读:这是我在angular 2项目中的配置 ng -v _ _ ____ _ ___ / _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ | '_ / _` | | | | |/ _` | '__| | | | | | | / ___ | | | | (_| | |_| | | (_| | | | |___| |___ | |/_/ __| |_|__,|__,_|_|__,_|_| _
这是我在angular 2项目中的配置

ng -v
    _                      _                 ____ _     ___
   /    _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △  | '_  / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ | | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   __| |_|__,|__,_|_|__,_|_|       ____|_____|___|
               |___/
@angular/cli: 1.0.0-rc.0
node: 6.2.0
os: linux x64
@angular/common: 2.4.8
@angular/compiler: 2.4.8
@angular/core: 2.4.8
@angular/forms: 2.4.8
@angular/http: 2.4.8
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 2.4.8
@angular/platform-browser-dynamic: 2.4.8
@angular/router: 3.4.8
@angular/cli: 1.0.0-rc.0
@angular/compiler-cli: 2.4.8

无论如何,我无法在任何地方找到webpack文件配置.
简单地说,它不应该退出或我错过了什么?

谢谢

解决方法

它默认是隐藏的.您可以使用 ng eject命令将其解压缩

Ejects your app and output the proper webpack configuration and scripts.

我相信您的应用程序将不再适用于CLI,但您可以使用生成的配置/脚本作为替代构建解决方案.

在尝试之前备份你的项目(;

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读