Skip to content
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 are you linking to images in css? #73

Open
rschooley opened this issue Feb 10, 2014 · 2 comments
Open

How are you linking to images in css? #73

rschooley opened this issue Feb 10, 2014 · 2 comments

Comments

@rschooley
Copy link

This CSS works in dev but will break in S3 because it resolves to the S3 subdomain for Amazon without the bucket name:

CSS: background: url('/images/logo.png')

Modifying that to a relative path will work in prod, but breaks dev due to now the assets dir is nested: (public/assets/public/foo)

CSS: background: url('../images/logo.png')

I don't see a background-image in the sample css, how are you pathing to images with nap?

@craigspaeth
Copy link
Owner

Have you tried using the cdnUrl option? This is how I point to assets on S3.

@rschooley
Copy link
Author

Yes, I am using cdnUrl to create S3 links.

The issue is the pathing to the images bucket in S3 when using cdnUrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants