You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great work on assetpack, I've been experimenting to see if I can integrate it into a project and an into a couple of issues related to creating a Pixi manifest.
The first issue is with customising output directory.
The manifest plugin generates file paths for the manifests "srcs" property, but I can't see a way to prepend to that file path.
I'm using Vite and directing assetpack to output to the 'public' directory deletes everything in that folder so I can't host any public assets not handled by assetpack.
I think it would be useful to be able to prepend to the file path that is created by the manifest plugin so the files handled by assetpack can all be placed in a sub directory and the "srcs" property in the Pixi manifest still be correct.
The second issue is with handling Spine files.
I would like to have the Spine json files added to the generated Pixi manifest, but not the atlas files. It currently adds the Spine json, atlas and png files all to the manifest then Pixi fails when it tries to load the atlas file as an image.
What I think would work is if we could add an ignore property to the manifest plugin options so that we can specify which files should not be added to the manifest. Whilst still allowing assetpack to move the files to the output directory.
The text was updated successfully, but these errors were encountered:
Thanks for asking for more information. Whilst checking my work in order to explain the issue better I have found the solution is actually already in the Pixi Assets class.
I was trying to add a folder to the base path of where Pixi should load the assets in the asset manifest from, but it can be done by passing an option in to the Assets.init method already. So you can disregard that first issue.
As for the second issue. I'd be happy to try make the change to add an ignore list and submit a PR when I get a chance to do the work. Would that be welcome?
Thanks for the great work on assetpack, I've been experimenting to see if I can integrate it into a project and an into a couple of issues related to creating a Pixi manifest.
The first issue is with customising output directory.
The manifest plugin generates file paths for the manifests "srcs" property, but I can't see a way to prepend to that file path.
I'm using Vite and directing assetpack to output to the 'public' directory deletes everything in that folder so I can't host any public assets not handled by assetpack.
I think it would be useful to be able to prepend to the file path that is created by the manifest plugin so the files handled by assetpack can all be placed in a sub directory and the "srcs" property in the Pixi manifest still be correct.
The second issue is with handling Spine files.
I would like to have the Spine json files added to the generated Pixi manifest, but not the atlas files. It currently adds the Spine json, atlas and png files all to the manifest then Pixi fails when it tries to load the atlas file as an image.
What I think would work is if we could add an ignore property to the manifest plugin options so that we can specify which files should not be added to the manifest. Whilst still allowing assetpack to move the files to the output directory.
The text was updated successfully, but these errors were encountered: