项目原始demo,不改动
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # [postcss][postcss]-normalize-url [![Build Status](https://travis-ci.org/ben-eb/postcss-normalize-url.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-normalize-url.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-normalize-url.svg)][deps]
  2. > [Normalize URLs](https://github.com/sindresorhus/normalize-url) with PostCSS.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-normalize-url) do:
  5. ```
  6. npm install postcss-normalize-url --save
  7. ```
  8. ## Example
  9. ### Input
  10. ```css
  11. h1 {
  12. background: url("http://site.com:80/image.jpg")
  13. }
  14. ```
  15. ### Output
  16. ```css
  17. h1 {
  18. background: url(http://site.com/image.jpg)
  19. }
  20. ```
  21. Note that this module will also try to normalize relative URLs, and is capable
  22. of stripping unnecessary quotes. For more examples, see the [tests](test.js).
  23. ## Usage
  24. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  25. examples for your environment.
  26. ## API
  27. ### normalize([options])
  28. Please see the [normalize-url documentation][docs]. By default,
  29. `normalizeProtocol` & `stripFragment` are set to `false`; `stripWWW` to `true`.
  30. ## Contributing
  31. Pull requests are welcome. If you add functionality, then please add unit tests
  32. to cover it.
  33. ## License
  34. MIT © [Ben Briggs](http://beneb.info)
  35. [docs]: https://github.com/sindresorhus/normalize-url#options
  36. [ci]: https://travis-ci.org/ben-eb/postcss-normalize-url
  37. [deps]: https://gemnasium.com/ben-eb/postcss-normalize-url
  38. [npm]: http://badge.fury.io/js/postcss-normalize-url
  39. [postcss]: https://github.com/postcss/postcss