Where is my webpack config file in angular 2 cli?

This is the configuration that is in my angular 2 project

 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

In any case, I could not find the webpack file configuration anywhere. Just, shouldn't he go out or am I missing something?

thank

+4
source share
2 answers

It is hidden by default. You can extract it using ng ejectcommand

Retrieves your application and displays the correct configuration and webpack scripts.

I believe that the application will no longer work with the CLI, but you can use the generated config / scripts as an alternative build solution.

Backing up the project before you try (;

+7
source

tsconfig.json, , , .

-1

Source: https://habr.com/ru/post/1672340/


All Articles