Jump to content

bitmap text and webpack


mcolman
 Share

Recommended Posts

Hi, I'm trying to use bitmap text with my webpack set up. Webpack changes the filenames of my assets which causes problems with pixi.

When you load an xml file through pixi it tries to then parse bitmap text assuming that the png has the same name as the xml. 

In my case this is not true, so I'd like to parse the bitmap text myself (which pixi allows). But then how do I load the xml file? Again, if I use pixi it will try to do this automatically and fail (with errors).

I also don't quite understand how ppl are using this automatic system that relies on the names of the xml and png being the same. If you don't hash your file names, then when you change that bitmap font, the user may grab the xml from the browser cache and load in the new png which will result in some weird looking text. So what method are you using to break the cache when you upload new assets? Maybe you can add query strings to the assets instead?

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...