[ 
https://issues.apache.org/jira/browse/WICKET-3674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029918#comment-13029918
 ] 

Martin Grigorov commented on WICKET-3674:
-----------------------------------------

Currently PackageTextTemplate compresses both .js and .css with the same 
compressor.
White spaces and comments (/**/) are common so there shouldn't be a problem.

Is there a need for special CssCompressor or we can just rename 
JavaScriptCompressor to TextResourceCompressor ?

> Provide an interface to allow css resources to be compressed like javascript 
> resources
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-3674
>                 URL: https://issues.apache.org/jira/browse/WICKET-3674
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Hielke Hoeve
>            Priority: Minor
>              Labels: compress, javascript, resource, stylesheet
>
> Wicket provides a nice interface to compress JavaScript resources. WiQuery 
> provides the YUICompressor implementation, which works really well. However 
> there is no way to compress users their CSS resources. Wicket acts if there 
> can only be JavaScript and no CSS and all JavaScript compressor 
> implementations will fail when something else than JavaScript is given to 
> them. In Wicket 1.4 the call happened in JavaScriptPackageResource and CSS 
> resources were omitted all together, but in 1.5 
> JavaScriptPackageResourceReference is just a façade and all resources are 
> treated the same...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to