简体   繁体   English

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

[英]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.

相关问题 angular-cli在哪里是webpack.config.js文件 - 新的angular6不支持ng弹出 - angular-cli where is webpack.config.js file - new angular6 does not support ng eject Angular CLI 自定义 webpack 配置 - Angular CLI custom webpack config 我在哪里可以找到 Angular CLI 7.3.9 默认生成的 webpack 设置文件,以便我可以基于它构建我的覆盖? - Where do I find Angular CLI 7.3.9 default generated webpack settings file so I can build my overrides based on it? 如何使用angular CLI在angular项目设置中更改webpack.config文件 - How to change webpack.config file in angular project setup using angular cli StoryBook Angular - 错误! => 无法获得 angular cli webpack 配置 - StoryBook Angular - ERR! => Could not get angular cli webpack config Pug支持Angular 2 / Angular 4 / Angular 6 / Angular cli / Angular cli 6(无自定义WebPack配置) - Pug support for Angular 2 / Angular 4 / Angular 6 / Angular cli / Angular cli 6 (without custom WebPack config) 为什么 Angular CLI 弹出了 Webpack 2 配置中的两个 SCSS 规则 - Why are there two SCSS rules in Webpack 2 config ejected by Angular CLI webpack资产在Angular 2 CLI项目中的位置 - Where do webpack assets go in an Angular 2 CLI project Webpack使用angular-cli生成的文件在哪里 - Where are files generated by webpack using angular-cli 如何在我的angular 5项目中添加“ webpack.config.vendor.js”文件 - How to add “webpack.config.vendor.js” file in my angular 5 project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM