Webpack + Express: How to serve static resources in /node_modules from the server
<p>I am trying to use webpack to generated a bundle.js file for a node module. The bundle.js file will be used in the client browser. </p>

<p>Here is the problem, the project has some dependencies that use static files in the node_modules directory. For example, the path of one of the static file is </p>

<p><code>/node_modules/node-pogo-signature/lib/proto/Signature.proto</code></p>

<p>When I try to run the bundle.js file in the browser, I get this error</p>

<pre><code>GET http://localhost:3000/proto/Signature.proto 404 (Not Found)
</code></pre>

<p>If I copy the the Signature.proto file into my /public folder, the bundle will then find it. However, manually copying static files from /node_modules to /public can be tedious and hard to maintain. 
Is there a better way to do it?</p>