Trott / grunt-html-smoosher

A grunt task which takes an HTML file, finds all the CSS and JS links, and outputs a version with all the CSS and JS written inline for ease of pasting into a cms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relative paths in CSS files are not handled correctly

Trott opened this issue · comments

If a CSS file contains something like src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');, then the URL is treated as if it is relative from the HTML file and not from the CSS file. So if they are in different directories, the resulting smooshed HTML file will have the wrong path.