You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Julien NICOLAS (JIRA)" <ji...@apache.org> on 2018/12/07 10:32:00 UTC

[jira] [Commented] (OFBIZ-10541) Add a gradle task to compile less files in css and minify

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

Julien NICOLAS commented on OFBIZ-10541:
----------------------------------------

Hi [~Dennis Balkir], [~mbrohl], (and all others ;) )

I'm working on this issue \o/

In my process, I consider that less files are centralized in the component/webapp/component/less folder and that the minified css will be generated in the component/webapp/component/css/build folder.

In this way, I avoid to scan all folders. In the same times, the build folders are exclude from the modified files list.

Before starting on the js and css (not coming from less) minifying, I would like your opinion about the process I done.

There is also some improvement needed on my gradle task, I don't want that the files regenerate if it's not needed. I think about not recompile if the less file have a modified date under the css file, but maybe gradle provide by default this feature. I'll dig further on this track before implement the date trick.

Thank by advance for your opinions,

Julien.

> Add a gradle task to compile less files in css and minify
> ---------------------------------------------------------
>
>                 Key: OFBIZ-10541
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10541
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: themes
>    Affects Versions: Trunk, Upcoming Branch
>            Reporter: Julien NICOLAS
>            Assignee: Julien NICOLAS
>            Priority: Trivial
>         Attachments: OFBIZ-10541-v1.patch, minify_gradlew.patch
>
>
> For theme optimization, I would like to compile less files to css file.
> In this way, we can remove the js compilation script from theme.
> In the same times, I propose to minify and compress css files.
> For debugging, css files will not be compress nor minified.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)