Currently using this approach:
final String suffix = DEVELOPMENT ==
getApplication().getConfigurationType() ? "" : ".min";
response.render(CssHeaderItem.forUrl(String.format("css/theme%s.css",
suffix)));
On Thu, Aug 3, 2017 at 2:40 PM, lucast <[email protected]> wrote:
> I'd like to second Maxim on this.
> I am loading font files from the css file, and using
> ContextRelativeResourceReference did not work.
>
> I did not post my findings since I presumed it must have been something I
> did wrong, or that it didn't work due to lack of understanding on my part.
>
> Kind regards,
> Lucas
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/using-CssResourceReference-for-css-
> file-that-lives-in-webapp-tp4678358p4678413.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
WBR
Maxim aka solomax