Skip to content

BuildTasks

TheInsanityGod edited this page Sep 23, 2026 · 2 revisions

A build task that will automatically minimize the JSON file output by stripping all the white spaces. (you'd be surprised how much space this can save when dealing with large shape files...)

Example

You simply need to specify the paths (when paths are specified it will automatically run the task)

<PropertyGroup>
	<JsonMinifierPaths>assets\*\shapes\**\*.json</JsonMinifierPaths>
</PropertyGroup>

Beware: if you are using this with CakeBuild you will probably need to fix its weird copy logic. (otherwise cakebuild might just ignore the actual output and copy over the source files directly)

image

Clone this wiki locally