Skip to content

Non-Minecraft-specific optimizations should be applied to unrecognized yet force_included files #390

Description

@ZebulanStanphill

Related problem or need

I noticed that the files in my pack overlays, which have to be force_included (see #254), are copied as-is into the pack ZIP. The JSON files aren't even minified.

Proposed solution

It seems reasonable to me that optimizations not specific to Minecraft should be applied by default to otherwise unrecognized files that have been force_included. I'm talking JSON minification, (basic) image compression, etc.

Alternative solutions

Obviously, PackSquash support for overlays would negate my current need for this feature. And even now, it's obviously possible to use something like shell scripts to pre-minify the files before sending them into PackSquash.

However, I believe this feature request would still be useful regardless, since it would make PackSquash more widely compatible with stuff like modded data packs that use custom data-driven registries, without ever having to explicitly/natively support such things.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions