node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

webpack-game-asset-plugin

npm version dependencies Status devDependencies Status typedoc link

webpack-game-asset-plugin

webpack plugin for HTML5 game asset

usage - simple example

new assetPlugin({
  assetRoots: [
    "assets",
    ["assets/Data", "Data"]
  ],
  listOut: "resources.json",
  makeAtlas: true,
  compositor: "gm",
  atlasMap: [
    "game",
    "!game/effect"
  ]
})

Optional Depedencies

bitmapfont generation

  • @mapbox/shelf-pack
  • bitmapfont
  • xml2js
  • stream-buffers

texture packing

  • node-sprite-generator
  • node-sprite-generator composer
    • gm

making audiosrptie

  • audiosprite

audio encode

  • fluent-ffmpeg

option

see typedoc