├── .eslintrc ├── .gitignore ├── .npmignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── gulpfile.js ├── index.js ├── package.json ├── test ├── fixtures │ ├── expected │ │ ├── test-absolute-included.css │ │ ├── test-absolute-skipped.css │ │ ├── test-append-hash.css │ │ ├── test-datauri.css │ │ ├── test-error.css │ │ ├── test-hash-function.css │ │ ├── test-hash-length-max.css │ │ ├── test-hash-length-zero.css │ │ ├── test-hash-length.css │ │ ├── test-local.css │ │ ├── test-multi-url.css │ │ ├── test-remote.css │ │ ├── test-replace-hash.css │ │ ├── test-replacer.css │ │ └── test-url-other.css │ ├── images │ │ ├── postcss.png │ │ ├── test.png │ │ └── test.svg │ ├── test-absolute.css │ ├── test-append-hash.css │ ├── test-datauri.css │ ├── test-error.css │ ├── test-hash-function.css │ ├── test-hash-length-max.css │ ├── test-hash-length-zero.css │ ├── test-hash-length.css │ ├── test-local.css │ ├── test-multi-url.css │ ├── test-remote.css │ ├── test-replace-hash.css │ ├── test-replacer.css │ └── test-url-other.css └── test.js └── yarn.lock /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | npm-debug.log 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/.npmignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/README.md -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/gulpfile.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/package.json -------------------------------------------------------------------------------- /test/fixtures/expected/test-absolute-included.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(/images/test.png?v=e19ac7dee6); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-absolute-skipped.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(/images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-append-hash.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-append-hash.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-datauri.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-datauri.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-error.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/hello.png); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/expected/test-hash-function.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png?v=ce42ff6057); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/expected/test-hash-length-max.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png?v=e19ac7dee652fdbcbaa7cf7f3b998fa1); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-hash-length-zero.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png?v=); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-hash-length.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png?v=e19ac7dee652fdbcbaa7cf); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-local.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-local.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-multi-url.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-multi-url.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-remote.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-remote.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-replace-hash.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-replace-hash.css -------------------------------------------------------------------------------- /test/fixtures/expected/test-replacer.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png?e19ac7dee652fdbcbaa7cf7f3b998fa1); 3 | } -------------------------------------------------------------------------------- /test/fixtures/expected/test-url-other.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/expected/test-url-other.css -------------------------------------------------------------------------------- /test/fixtures/images/postcss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/images/postcss.png -------------------------------------------------------------------------------- /test/fixtures/images/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/images/test.png -------------------------------------------------------------------------------- /test/fixtures/images/test.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/images/test.svg -------------------------------------------------------------------------------- /test/fixtures/test-absolute.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(/images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/test-append-hash.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-append-hash.css -------------------------------------------------------------------------------- /test/fixtures/test-datauri.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-datauri.css -------------------------------------------------------------------------------- /test/fixtures/test-error.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/hello.png); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/test-hash-function.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png); 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/test-hash-length-max.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/test-hash-length-zero.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/test-hash-length.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/test-local.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-local.css -------------------------------------------------------------------------------- /test/fixtures/test-multi-url.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-multi-url.css -------------------------------------------------------------------------------- /test/fixtures/test-remote.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-remote.css -------------------------------------------------------------------------------- /test/fixtures/test-replace-hash.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-replace-hash.css -------------------------------------------------------------------------------- /test/fixtures/test-replacer.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(images/test.png); 3 | } -------------------------------------------------------------------------------- /test/fixtures/test-url-other.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/fixtures/test-url-other.css -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/test/test.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuezk/postcss-urlrev/HEAD/yarn.lock --------------------------------------------------------------------------------