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

Architect not working with webpack? #76

Open
nerdoc opened this issue Nov 2, 2019 · 0 comments
Open

Architect not working with webpack? #76

nerdoc opened this issue Nov 2, 2019 · 0 comments

Comments

@nerdoc
Copy link

nerdoc commented Nov 2, 2019

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant