Add ResourceTransformer and CSS link implementation

This change adds a ResourceTransformer that can be invoked in a chain
after resource resolution. The CssLinkResourceTransformer modifies a
CSS file being served in order to update its @import and url() links
(e.g. to images or other CSS files) to match the resource resolution
strategy (e.g. adding MD5 content-based hashes).

Issue: SPR-11800
This commit is contained in:
Rossen Stoyanchev
2014-05-27 20:43:57 -04:00
parent e3e8a3eb40
commit 6966e89578
23 changed files with 808 additions and 55 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

View File

@@ -0,0 +1,11 @@
@import url("bar.css");
@import url('bar.css');
@import url(bar.css);
@import "foo.css";
@import 'foo.css';
body { background: url("images/image.png") }
li { list-style: url(http://www.example.com/redball.png) disc }