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:
@@ -1 +0,0 @@
|
||||
h1 { color:red; }
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 155 B |
@@ -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 }
|
||||
@@ -1 +0,0 @@
|
||||
h1 { color:red; }
|
||||
Reference in New Issue
Block a user