vigetlabs / gulp-rails-pipeline

Ditch the Rails Asset Pipeline and roll your own with Gulp
MIT License
646 stars 64 forks source link

Use gulp_asset_path in scss #45

Closed Luxbit closed 8 years ago

Luxbit commented 8 years ago

I'm wondering how to link images or fonts in scss.

Is there an easy way to get the gulp_asset_path working in scss ?

greypants commented 8 years ago

the rev step does a string replace of matched paths based on the generated rev-manifest.json file. So something like assets/images/cat.gif would get replaced with assets/images/cat-aw802hfa2de.gif out of the box.