c9 / architect

A simple yet powerful plugin system for large-scale node applications
MIT License
982 stars 129 forks source link

Architect not working with webpack? #76

Open nerdoc opened 5 years ago

nerdoc commented 5 years ago

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 `dirnamewith "/" - 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: UsingArchitect.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?