Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Architect not working with webpack? #76

@nerdoc

Description

@nerdoc

I am using webpack for a bigger project, and am evaluating architect as plugin system.
You are using __dirname in the demos. I found the problem because of that - webpack replaces __dirname with "/" - so it's unusable. But worse: even if using relative paths for the config file, architect does not find the file when usign webpack easily:
Using Architect.loadConfig("../config.js") does not work when config.js is in the ".." firectory of the calling file.

Have you got any suggestions how to deal with that? I'm sure you are using webpack or another bundler for C9 as well - how did you manage not breaking Architect here?

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