You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: