🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

audiosprite-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

audiosprite-loader

Audio Sprite Loader and Plugin for Webpack

0.1.5
latest
Source
npm
Version published
Weekly downloads
6
-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

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
  • Dependencies

Usage

Install the loader.

npm install audiosprite-loader

webpack.config.js

const AudioSprite = require("audiosprite-loader");

module.exports = {
    module: {
        loaders: [
            {
              test: /\.(wav|mp3)$/,
              loader: AudioSprite.loader()
            }
        ]
    },
    plugins: [
        new AudioSprite.Plugin()
    ]
}

index.js

const audio = require("./audio/file.wav");
audio.play();

Dependencies

You'll need ffmpeg installed.

OSX

brew install ffmpeg --with-theora --with-libvorbis

License

MIT

Keywords

audiosprite

FAQs

Package last updated on 17 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts