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

Jochen Kemnade commented on TAP5-1377:
--------------------------------------

I just had another idea: Stylesheets can be added to JavaScriptStacks. We could 
just wrap those stylesheets in some code that creates dynamic stylesheets using 
{{document.createElement('style')}}. That way, they could be included in the 
stack like a regular JS file.

> Combine CSS files in production mode
> ------------------------------------
>
>                 Key: TAP5-1377
>                 URL: https://issues.apache.org/jira/browse/TAP5-1377
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.4, 5.2
>            Reporter: Dan Adams
>              Labels: patch
>         Attachments: 0002-TAP5-1377-Combine-CSS-files-in-production-mode.patch
>
>
> When in production mode, combine CSS files into a single file as is done with 
> javascript resources. 
>  * Any relative references to urls in the CSS contents should be absolutized 
> based on the URL of the original CSS path so that things like background 
> images continue to function. 
>  * @import statements should also be unpacked so that designers have 
> flexibility in how the files are structured. 
>  * Any CSS files that have a class on the link element of "nocombine" or that 
> have a non default/non-screen media should not be combined.
>  * Record a comment before each file saying which CSS file it originally came 
> from



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to