How to change the folder where is fetching the JavaScript file?


The statement

<script src="/"></script>

looks for in the 'public' folder instead of node_module.

Changing the url to ../node_module/ does not work.

How do I change the default folder which src looks into?

Problem courtesy of: Program_Sauce


socketio sever when receives the request '/' , it dynamically builds the content ( considering the transports configured to be supported by the server ).

The file is neither served from public / node modules.

Solution courtesy of: Chandu


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.