Skip to content

6.0.0-beta.4 ng eject throws error recommending config.optimization.minimize #9841

Closed
@gregbown

Description

@gregbown

Versions

Angular CLI: 6.0.0-beta.4
Node: 8.9.0
OS: win32 x64
Angular: 6.0.0-beta.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Repro steps

  • Step 1
    cmd console:
ng eject --target=production --environment prod --aot=true --progress=true --extract-licenses=false -vc -cc -ec -nc --output-hashing=bundles --buildOptimizer

Observed behavior

Fails with error:

webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.

Desired behavior

Expose updated CLI commands, the ng --help doesn't work
Have eject support the commands even if it is using something else internally

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions