HP. HP. - 1 year ago 104
HTML Question

Change link or script filename in html after gruntjs minify/uglify

I am using standard minify/uglify for css/js files and combine multiple files to main.min.css or app.min.js... However my .html file needs to be modified to point to these new file names too in


Is there a way to automate this? Or how to modify .html files automatically to rename the file names in there using

Answer Source

I am using Middleman App do distinguish between dev vs build in my html or haml file:

- if development?


- if build?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download