How to communicate with node js code while at development environment?

I need to do some dynamic "native" (fs etc) computations depending on some runtime data while in development (webpack-dev-server), that code will be cut from production build, something like angular’s jit and aot compilation. How do I communicate with node script and recieve output from it before code will be ran in the browser?

Source: Angular Questions