I use Grunt to compile jade templates in html, uglify / concat js and minim / concat css.
During development, I use a combination of connect and view to maintain my interface and automatically receive changes. In this I also use the "source" of js and css (and not the Uruguay / Consistent / Reduced version).
Now when I generate the production html, js and css, I wonder what the best solution is to change the inclusions of * .min js and css.
To be more specific in my html I, for example. include: a.css b.css c.css a.js b.js
this is fine for development, but when creating the production version I want:
common-min.css common-min.js
Of course, I donβt want to change the Jade templates manually, so I'm looking for a better approach, perhaps using some Grunt plugin.
source share