I am new to nodejs and grunt.

I was going through the less-middleware and was very impressed with the way it automatically creates the css files. I now want the same for js files also. Let me briefly explain -

  1. User makes a request to site.min.js
  2. The routes automatically captures the particular request.
  3. Nodejs creates a new combined and minified js file based on the input parameters if the file is not already present.
  4. Return the combined file.

I feel grunt is not the right way to go about it since every time the js files are updated I will have to commit new version of the min file to the repo. I want some dynamic mechanism of creating the minified version.

Also not that i am trying to deploy my code on heroku.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.