Organizational Research By

Surprising Reserch Topic

how can i convert a multi file node js app to a single file


how can i convert a multi file node js app to a single file  using -'javascript,node.js'

If I have a node.js application that is filled with many require statements, how can I compile this into a single .js file? I'd have to manually resolve the require statements and ensure that the classes are loaded in the correct order. Is there some tool that does this?

Let me clarify.

The code that is being run on node.js is not node specific. The only thing I'm doing that doesn't have a direct browser equivalent is using require, which is why I'm asking. It is not using any of the node libraries.
    

asked Sep 24, 2015 by dahiyabecomp
0 votes
8 views



Related Hot Questions

3 Answers

0 votes
NULL
answered Sep 24, 2015 by sandeep bhadauria
0 votes
NULL
answered Sep 24, 2015 by gauravsinghal83
0 votes
NULL
answered Sep 24, 2015 by rajesh

...