#Help using sound files in my webpack
1 messages · Page 1 of 1 (latest)
error?
and what path?
and what path in request?
?
you have requests in network tab
http://localhost:3000/extraResources/EarTickle.mp3
your server have this file?
I think?
so how do I let it?
correctly config web server
rules ```js
{
test: /.(png|jpe?g|gif|mp3)$/i,
loader: 'file-loader', // npm install file-loader --save-dev
options: {
outputPath: 'extraResources',
publicPath: '../extraResources',
name: '[path][name].[ext]',
}
},
not quite... same error
is there anything i have to do with js to import it?
hmmmm
in main.js
BUT
it puts it into the wrong folder
with your help and chatGPT I was able to figure it out
I love you, thank you!
will post solution tomorrow