gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-29 17:48:24 24 4
gpt4 key购买 nike

这是我的 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,但您可以使用生成的配置/脚本作为替代构建解决方案。

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

关于angular - 我在 angular 2 cli 中的 webpack 配置文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42806675/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com