normalizeUrl

Normalizes URL strings. It can remove default ports, resolve unnecessary directory traversal & unquote the value.

.box {
    background: url("./css/../img/cat.jpg");
}
.box {
    background: url(img/cat.jpg);
}

View on GitHub