Skip to content

Folder as Part of Module Name #22

@trisys3

Description

@trisys3

Can we do folder name as part of the module name? As it is, this module is pretty much unusable for me, as we have instances of multiple HTML files with the same base name, no matter how much we try to avoid it. This will only increase as we make our app more complex, with multiple npm modules that may all fall under the same base Angular module.

There is probably a way we can avoid this issue, but wouldn't it be better to add the folder name as part of the module name in the first place? You can use things like the path module and __dirname/__filename variables included with Browserify (and we could use them in this transform), that's what they are there for. I don't think they take away too much performance, at least when your app is complex enough to consider using them, but if so I suppose this would be a reason to not implement this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions