Skip to content

Angular Production Build: Not able to remove the Dependencies Details from angular Build generated main[hash].js file #25568

Closed
@neil26

Description

@neil26

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Hello Community,

I am Facing an issue in the Angular Production Build Generated main[hash].js file, the main file generated in builds shows all the information about dependencies, I have tried several things including custom-webpack, but I am unable to remove the details from the main.js file

image image

I want to remove the highlighted part from main[hash].js file generated with ng build --prod

Minimal Reproduction

generated the build using ng build --prod

checked main[hash].js file in browser, dependencies and devDependencies details are still there.

Exception or Error

To remove Dependencies or devDependencies from the angular prod / UAT build generated main[hash].js

Your Environment

Angular CLI: 7.3.0
Node: 10.19.0
OS: win32 x64
Angular: 7.2.3
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.13.0
@angular-devkit/build-angular      0.13.0
@angular-devkit/build-optimizer    0.13.0
@angular-devkit/build-webpack      0.13.0
@angular-devkit/core               7.3.0
@angular-devkit/schematics         7.3.0
@angular/cdk                       7.3.0
@angular/cli                       7.3.0
@angular/flex-layout               7.0.0-beta.19
@angular/material                  7.3.0
@angular/material-moment-adapter   9.1.3
@ngtools/webpack                   7.3.0
@schematics/angular                7.3.0
@schematics/update                 0.13.0
rxjs                               6.4.0
typescript                         3.2.4
webpack                            4.29.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions