Utilizing Grunt for the compilation of jade templates into HTML, as well as uglifying/concatenating JS and minimizing/concatenating CSS.
During the development process, I employ a combination of connect and watch to serve the front-end and automatically detect changes. At this stage, I make sure to use the 'source' versions of JS and CSS, rather than the minified/concatenated versions.
However, when it comes time to generate the production-ready HTML, JS, and CSS files, I find myself wondering about the best approach to updating the inclusions of the *.min JS and CSS files.
To clarify, my HTML currently includes:
a.css b.css c.css a.js b.js
While this setup works for development, in the production version I aim to have:
common-min.css common-min.js
Naturally, manually changing the Jade templates is not ideal, so I am exploring alternate solutions, potentially involving a Grunt plugin.