-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to package stylesheets with local images? #7
Comments
asset_packager would have to scan for relative patchs and replace them with absolute ones. Can be implemented, but definitely not trivial. And I suspect the solution would be error-prone. |
The Jammit packager can do this although it uses the YUI compressor and requires Java which I don't like. |
Bump. Font location: non-compiled css location: font reference path (in font-awesome.css): Compiled CSS stored in public/stylesheets/bower_components.css is reference ../fonts/custom-font-here.woff - 404 not found. |
Hi @bzitzow - Asset Packager is no longer being actively maintained. It was written in the Rails 1.X days. If you need to continue using it, I would suggest writing an additional rake task that copies your fonts to the path the compiled css expects it, which looks most likely to be: |
I'm using jquery plugins. Each is a separate folder in my javascript directory. These folders contain css files and images that are referred to from the css files.
When asset_packager combined these files the path to the images is not adapted to find the images in their original folder. An example:
Part of my .yml file:
Given the following files
javascript/tools/styles.css => in this file a reference to url(tooltip.png) refers to the following file:
javascript/tools/tooltip.png
After packaging the image reference hasn't changed and the image can't be found.
Can this be accomplished?
Thanks
The text was updated successfully, but these errors were encountered: