Closed Sawtaytoes closed 9 years ago
I get the same thing, with 0.2.10 at least. Reverting to 0.2.7 also fixes it for me.
Hi will look into it asap.
Thanks for the contribution.
It looks like this is still an issue. Tested 2.7 and 2.11, both failed. Reverting to 2.5 fixes it, but then it messes up some styling.
EDIT: 2.11 works if the dest file is different than source.
@dwightjack @KrisOlszewski Is right, i had to make a workaround on my workflow, the dest now is on the root of my project, then i delete my dist html files and copy the html from the root to my dist folder and delete them after. 2 more steps to get the work done.
Ok,
i think figured out the problem: since premailer was giving random error when destination file didn't existed, i was creating it before running premailer.
In a src === dest scenario this ended up parsing an empty file. :S
I just released 0.2.12 which should fix the issue. Tested with Ruby 1.9.3 + hpricot and Ruby 2.0.x with nokogiri.
Sorry for the delay in solving this issue.
My HTML gets completely replaced w/ only this
DOCTYPE
declaration when using0.2.9
and0.2.10
. I could not test0.2.8
as npm threw errors.0.2.7
works for me and is what I've reverted to.premailer.coffee
:A piece of
location-vars.coffee
where thefiles
reference is found: