[英]Where is my webpack config file in angular 2 cli?
This is the config that I have on my angular 2 project 这是我在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
Anyway, I couldn't find the webpack file config in anywhere. 无论如何,我无法在任何地方找到webpack文件配置。 Simply, it shouldn't exit or am I missing something? 简单地说,它不应该退出或我错过了什么?
Thanks 谢谢
It's hidden by default. 它默认是隐藏的。 You can extract it with ng eject
command 您可以使用ng eject
命令将其解压缩
Ejects your app and output the proper webpack configuration and scripts. 弹出您的应用程序并输出正确的webpack配置和脚本。
I believe you app won't work with CLI anymore, but you can use generated config/scripts as an alternative build solution. 我相信您的应用程序将不再适用于CLI,但您可以使用生成的配置/脚本作为替代构建解决方案。
Backup your project before trying (; 在尝试之前备份你的项目(;
检查tsconfig.json,可能有你要找的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.