normalizeUrl

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

Example

Input

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

Output

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