Closed dwightjack closed 10 years ago
The premailer task fails to inline css files when they are linked with an absolute path.
Scenario
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
premailer.dist.options.base_url
http://www.live-site.com/
http://www.live-site.com/css/style.css
Since the file doesn't exist, premailer is unable to parse and inline it
Best solution would be to explicitly add an option in the task to include the CSS file
Ok, referenced the css in HTML with a relative path to fix the bug.
Markign this as an enhancement.
Closing this since grunt-premailer now manages this stuff
The premailer task fails to inline css files when they are linked with an absolute path.
Scenario
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
premailer.dist.options.base_url
set to a remote URL (http://www.live-site.com/
)http://www.live-site.com/css/style.css
)Since the file doesn't exist, premailer is unable to parse and inline it
Best solution would be to explicitly add an option in the task to include the CSS file