You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating gulp-cdnizer. I am having an issue with replacing CSS url() that have a parent directory relative path. My directory structure is:
In my CSS, I have: background-image: url(../images/sprite.png);
CDNizer will not replace the ../images/sprite.png. If I change my CSS to (use current directory relative path instead of parent directory relative path):
background-image: url(./images/sprite.png);
It works. So, for some reason CDNizer will not replace CSS URLs that have ../ but does work for URLs that have ./
Any ideas on how I can get CDNizer to replace URLs in CSS that have relative parent directory paths like background-image: url(../images/sprite.png)?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
Thank you for creating gulp-cdnizer. I am having an issue with replacing CSS url() that have a parent directory relative path. My directory structure is:
build/dist/styles/default.style.css
build/dist/images/*
My gulp task is:
In my CSS, I have:
background-image: url(../images/sprite.png);
CDNizer will not replace the ../images/sprite.png. If I change my CSS to (use current directory relative path instead of parent directory relative path):
background-image: url(./images/sprite.png);
It works. So, for some reason CDNizer will not replace CSS URLs that have ../ but does work for URLs that have ./
Any ideas on how I can get CDNizer to replace URLs in CSS that have relative parent directory paths like background-image: url(../images/sprite.png)?
Thanks!
The text was updated successfully, but these errors were encountered: