I have a problem with getting my mp3 files to work using the webpack file loader.
This is the issue:
I have a mp3 file on my harddisk, that if I open using c
Check the version of the file-loader, I solved this by upgrading the file-loader from 4.x.x to 6.x.x, then add mp3 to the normal webpack config plugin settings for files =>
// webpack.config.js
{
test: /\.(gif|png|jpe?g|svg|xml|mp3)?$/i,
use: "file-loader"
}
// OR
{
test: /\(mp3|wav|mpe?g|ogg)?$/i,
use: 'file-loader'
}
// OR BOTH