Wow thank you for that thorough and very patient response. You put the entire Aurelia/Electron challenge in context. Here I was thinking a few lines on webpack would solve everything but now I see it’s a more difficult architectural barrier.
Well, here’s some of my quagmire:
-
My Aurelia app is a folder sitting nested in my Electron project (
OK).
-
My Aurelia and Electron compile independently and I always have to run two different build scripts during dev (
Semi-OK)
-
Long story short: I ended up with TWO node-modules in my project — one for Aurelia and the other for the Electron “backend”. (Probably not OK)
Question: Is this normal? Two node_module folder in one project?
What’s worse, many packages appear in both folders; so that means I am bundling them twice in the finished product…
Oh, and here’s something else: the Aurelia part uses webpack, but the Electron part uses Gulp. (Too hard to figure own how to do it all with webpack only).
It’s such a Byzantine experience this whole thing. Or maybe Kafka-esque is more precise…