MattSurabian / webpack-audio-sprite-plugin

A webpack plugin and loader that work together to automate the generation of audio sprites and manifest objects for required audio files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This plugin and loader are still in active development and not feature complete

Webpack Audio Sprite Plugin & Loader

Build Status Build Status

When used together this plugin and loader automate the creation of audio sprites and their accompanying manifests. Generated sprites are automatically chunked and sized so they can be delivered intelligently to the browser along with the code that depends upon them.

Usage Example

var AudioSpritePlugin = require("webpack-audio-sprite-plugin");
module.exports = {
    module: {
        loaders: [
            { 
              test: /\.mp3$/, 
              loader: AudioSpritePlugin.loader() 
            }
        ]
    },
    plugins: [
        new AudioSpritePlugin()
    ]
}

About

A webpack plugin and loader that work together to automate the generation of audio sprites and manifest objects for required audio files.

License:MIT License


Languages

Language:JavaScript 100.0%