Matt Coleman has released the Phaser Manifest Loader plugin. It means you can load assets that have been compressed and fingerprinted by webpack as easily as this:
const manifest = {
spritesheets: [
'creature1',
'creature2'
],
'bitmap_fonts': [
'bitmapfont'
],
'audio': [
'blip'
],
'images': [
'phaser_logo',
'webpack_logo'
],
fonts: {
custom: {
families: [
'bebas_neuebold'
]
},
google: {
families: [
'Bangers'
]
}
}
}
Allowing you and your team to let webpack worry about asset packaging and updates.
If you wish to post comments on our site, you'll need an account. Please login or register.
Login Register