Webpack Audio Sprite Loader & Plugin
Audio Sprite loader for Webpack. This loader currently only supports howler.js format. It should be pretty easy to support other audio libraries though.
Usage
Install the loader.
npm install audiosprite-loader
webpack.config.js
const AudioSprite = ; moduleexports = module: loaders: test: /\.$/ loader: AudioSprite plugins:
index.js
const audio = ;audio;
Dependencies
You'll need ffmpeg
installed.
OSX
brew install ffmpeg --with-theora --with-libvorbis
License
MIT