Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Fix font-url for sass-rails > 5.x #617

Merged
merged 1 commit into from
Jan 12, 2015
Merged

Fix font-url for sass-rails > 5.x #617

merged 1 commit into from
Jan 12, 2015

Conversation

iwz
Copy link
Contributor

@iwz iwz commented Jan 9, 2015

When using newer versions of sass-rails, the $asset-pipeline flag wasn't
working properly. Although the font-url asset helper from
sass-rails was being generated into the resulting CSS, it was not being
post-processed by the asset pipeline.

The way we were previously outputting the font-url caused sass-rails to
not recognize the font-url helper. This change appends the helper in a more
direct way, and this resolves the issue.

Fixes #603

When using newer versions of `sass-rails`, the `$asset-pipeline` flag
wasn't working properly. Although the `font-url` asset helper from
`sass-rails` was being generated into the resulting CSS, it was not
being post-processed by the asset pipeline.

The way we were previously outputting the `font-url` caused `sass-rails`
to not recognize the `font-url` helper. This change appends the helper
in a more direct way, and this resolves the issue.

Fixes #603
@whmii
Copy link
Contributor

whmii commented Jan 9, 2015

Whew, that was a tough one.

@tysongach
Copy link
Contributor

👍 Works for me.

Thanks @whmii & @iwz!

@tysongach tysongach added this to the 4.1.1 milestone Jan 12, 2015
@iwz iwz merged commit b3f9288 into master Jan 12, 2015
@iwz iwz deleted the 603-fix-font-face branch January 12, 2015 14:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

font-face is no longer working with $asset-pipeline: true
3 participants