Skip to content

__dirname returns '/'  #3108

Description

@Judahh

Every time I use __dirname it returns '/' and if I use __filename returns '/index.js'.
I know It's from webpack, but I do not know how to configure webpack through the angular-cli (and I tried to find it in the web, but there is no solution).
Is there a way to avoid this problem?

OS:

Mac OSX Sierra

Versions:

angular-cli: 1.0.0-beta.19-3
node: 7.0.0
os: darwin x64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions