Howler.js: Usage with webpack

Created on 23 Aug 2016  路  3Comments  路  Source: goldfire/howler.js

How can I use it with webpack?

Most helpful comment

You can also just do:

import { Howl } from 'howler';

All 3 comments

You can load your sounds using file-loader (url-loader might work, but I haven't tried). Just pass the result of your require as the src option (like this: new Howl({src: [require("./my-sound.mp3")]})).

I add something like this:

import Howler from 'howler';
const { Howl } = Howler;

and it did work, tks

You can also just do:

import { Howl } from 'howler';

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tvbird picture tvbird  路  4Comments

joshbruce picture joshbruce  路  4Comments

jacobedawson picture jacobedawson  路  3Comments

proyb6 picture proyb6  路  4Comments

bestander picture bestander  路  4Comments