Serving mp3 files using the webpack file loader
Use file-loader like this: { test: /\.mp3$/, loader: ‘file-loader’ }
Use file-loader like this: { test: /\.mp3$/, loader: ‘file-loader’ }
url-loader will encode files to base64 and include them inline rather than having them loaded as separate files with another request. A base64 encoded file may look something like this: data:;base64,aW1wb3J0IFJlYWN0IGZ… This would be added into your bundle.