Skip to content

Enable JS minimization #6

@tobia

Description

@tobia

It seems to me that when building the war file, JSX resources are not minimized, while JS ones are.

Right now I'm writing my components as *.jsx files, having one of them (called Main) include the others with asset pipeline include comments, and referencing it from the GSP page with:

<asset:reactTemplate src="Main.jsx"/>

This works both in run-app and war, but the compiled version in the war is not minimized.

Should I organize or include my JSX files differently? Or is this feature not here yet? Can you piggyback on the regular asset pipeline minimization procedure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions