The Phaser Manifest Loader lets you easily load assets that have been compressed and fingerprinted by webpack.

Article by Richard Davey. Posted on 1st Feb 2017.   @photonstorm

image

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.

Read More

Comments

comments powered by Disqus