Skip to content

Why is my project path being hardcoded in the generated webpack? #9473

Closed
@sarbull

Description

@sarbull

I'm submitting a...


[ ] Regression
[X] Bug report
[ ] Feature request
[X] Documentation issue or request
[X] Support request

Current behavior

After i run ng eject my current full folder path is being hardcoded in the webpack build

...
    new CircularDependencyPlugin({
      "exclude": /(\\|\/)node_modules(\\|\/)/,
      "failOnError": false,
      "onDetected": false,
      "cwd": "D:\\Users\\sarbull\\projects\\angularApp"
    }),
...

Expected behavior

Should have been a relative path?

Minimal reproduction of the problem with instructions

Run ng eject check the webpack.config.js on line 406 in the CircularDependencyPlugin.

What is the motivation / use case for changing the behavior?

If i move the application in another folder will result in different folder paths.

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