Reputation: 119
Just like you can extend html pages on the server. I wanted to know if there is any method to join javascript files on the server using node and express or any thing else that works with node. So as to minimize the number of files i have to link to the document and as well as keeping javascript files separate from each other.
Upvotes: 0
Views: 74
Reputation: 5981
In fact it's better doing it once before deploying your js files on your server, to get better performances, than doing it on runtime.
You may do this with tools like grunt and the task grunt-usemin It will not only allow you to concatenate your files, but also to compress with uglify.
Upvotes: 1