Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow tags to be added manifest data directly #82

Merged
merged 9 commits into from
Sep 3, 2024
Merged

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Aug 28, 2024

This PR allows tags that are not defined by assetpack to be added to the manifest data object directly, instead of being under the tags section.

I've added the legacyMetaData option to the manifest plugin which will still add these custom tags to the tags section in the manifest for backwards compatibility.

This PR also fixes the issue with fonts not working with cache busting it adds the family tag and then pixi is able to read this directly

@Zyie Zyie linked an issue Aug 28, 2024 that may be closed by this pull request
@Zyie Zyie changed the base branch from main to fix/all-meta-data August 29, 2024 14:09
@Zyie Zyie changed the title feat: add data tags feat: allow tags to be added manifest data directly Aug 29, 2024
Copy link
Member

@GoodBoyDigital GoodBoyDigital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left one comment!
I think it might also be good to have a test to ensure tags are removed fro mmanifest if legacyMetaDataOutput is false!

packages/assetpack/src/image/compress.ts Show resolved Hide resolved
Base automatically changed from fix/all-meta-data to main September 3, 2024 08:55
@Zyie Zyie merged commit 4c98058 into main Sep 3, 2024
4 checks passed
@Zyie Zyie deleted the feat/data-tags branch September 3, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assetpack creates wrong aliases
2 participants