Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1542

Compress javascript files for production and show uncompressed versions when ProjectStage is not Production

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.9
    • 1.1.10
    • JSF2
    • None

    Description

      It could be great to have the same hack we have on myfaces core 2.0.x for handle javascript code. It the application runs on development time, it is possible to see the source code of jsf.js, but if is production time the compressed version is served.

      I think we could do something similar on tomahawk, creating a wrapper that scans a directory like META-INF/uncompressed-resources first before the default location META-INF/resources. To do that, we need to move some parts of JSF 2.0 resource handler api to shared (MYFACES-2899).

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: