Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

CSS background-image is not pointing to CDN endpoint in production mode #48

Closed
deepaksethi opened this issue Sep 24, 2013 · 0 comments
Closed

Comments

@deepaksethi
Copy link

On
https://github.com/niftylettuce/express-cdn/blob/master/lib/main.js#L188

String.replace returns a new string and hence the above line is effectively a NOOP
Furthermore the replace function is returning -- attribute+':url('+url+')'; -- irrespective of options.production.

The same issue will affect the font etc. too

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

No branches or pull requests

2 participants