jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Mojo Web Minifier Maven Plugin
  • Mojo Web Minifier Maven Plugin
  • MWEBMINI-4

New minifier

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    0

Description

I rewrote most of the code.

Now it will minify the css files also and use the existing tags from the html, instead of creating new ones, preserving the script declarations in the head and body. It minimized the html file also, removing comments and spaces. Split points are now created according to the tag's ID attribute.

The closure javascript minifier searches for function names in strings that shouldn't be replaced (needed the rhino parser for that, which had a hexadecimal parsing bug, that's why I have included it in the code) and adds other externs also for the advanced compilation.

The CSS minifier changes the relative paths when merged (since relative paths a relative to the file itself, which changes, once merged) and warns for nonexistent paths etc.

And other minor and major changes.

The code still needs some generalization and changes:
• Javascript property renaming should be enableable in the advanced phase
• YUI CSS minifier should also be added as an option
• the yui and closure options should be separated and if the same css and javascript files are included in different HTML files, they should be resolved, not compressed in a different file
• the compression shouldn't run if the parent directory's modified date didn't change.
• tests

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
No work has yet been logged on this issue.

People

  • Assignee:
    Christopher Hunt
    Reporter:
    Pap Lőrinc
Vote (0)
Watch (0)

Dates

  • Created:
    02/Mar/12 6:29 AM
    Updated:
    05/Mar/12 1:10 AM
    Resolved:
    04/Mar/12 4:21 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.