Skip to content

Minify the JavaScript Builder's script with a third-party library #184

Open

Description

@jwrosewell

Problem

#170 makes the JavaScript Builder minify its script by default with a cut-down single pass minifier written in the package, so the published package gains no dependency. The specification asks for an existing third-party library first.

What the specification says

javascript-builder.md lines 105 to 114 at dbaf099c:

Minification SHOULD be performed using an existing third-party library.

If it does have a significant impact, and no alternative libraries offer better performance, a cut-down minification process MAY be implemented in order to achieve the major benefits without a significant performance cost.

Suggested work

Whether this SHOULD obliges a language to add a library to a published package is open. If it does, measure a Java minification library against JavaScriptMinifier with #170's MinifyOverheadTests, and use it unless the cut-down process is faster, as the MAY allows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions