webamp/examples/webpack
2018-04-01 09:34:37 -07:00
..
index.html Add Webpack example 2018-04-01 09:09:37 -07:00
index.js Ignore import lint error 2018-04-01 09:34:37 -07:00
package-lock.json Add Webpack example 2018-04-01 09:09:37 -07:00
package.json Add Webpack example 2018-04-01 09:09:37 -07:00
README.md Add some more doc notes 2018-04-01 09:09:37 -07:00

Minimal Example

This example includes Winamp2-js in a Webpack bundle. The audio file and skin are fetched from a free CDN at run time.

Note: Currently Winamp2-js is published to NPM as a single bundle which includes all of its dependencies. This means that no matter what you do, Winamp2-js is going to bring along it's own React, Redux, JSZip, etc. If you have a use case where you would like Winamp2-js to share some or all of these dependencies with your own application, please file an issue and I can look into it.

To try it out:

$ git clone git@github.com:captbaritone/winamp2-js.git
$ cd winamp2-js/examples/webpack/
$ npm install
$ npm run build
$ open index.html