peh / react-grails-asset-pipeline

Grails React Asset Pipeline plugin
8 stars 3 forks source link

Enable JS minimization #6

Open tobia opened 9 years ago

tobia commented 9 years ago

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?

peh commented 9 years ago

Will have a Look over the next Weekend but if you wan't frei free to Look into it.