-
TheLarkInn My fault for lack of clarity! This is inside a server that itself is built by webpack and run nodemon. So the server builds, launches and then passes arguments made to an endpoint to a node module that builds a script using webpack based on the arguments.
-
TheLarkInn Got it working, turns out it was doing weird things with a variety of different paths. Ended up using
require.resolve.paths(".")[0]