Last updated 3 years ago
Was this helpful?
with PostCSS.
With do:
npm install postcss-normalize-url --save
h1 { background: url("http://site.com:80/image.jpg") }
h1 { background: url(http://site.com/image.jpg) }
Note that this module will also try to normalize relative URLs, and is capable of stripping unnecessary quotes. For more examples, see the .
See the for examples for your environment.
Please see the . By default, normalizeProtocol, stripFragment & stripWWW are set to false.
normalizeProtocol
stripFragment
stripWWW
false
See .
MIT ©