Webpack4 introduces mp3 file to report error

it is not yet time for packaging. The local introduction has already reported an error in
file path.


I am configured to write file-loader

.
             {
                test: /\.mp3$/,
                use: [{
                  loader: "file-loader",
                  options: {
                    name: "[name].[ext]",
                    outputPath: "img/"
                  }
                }]
              }
Oct.14,2021

{
     test: /\.mp3$/,
     use: [{
       loader: "url-loader",
       options: {
         name: "img/[name].[ext]",
       }
     }]
   }
         
          

tried online methods do not seem to work, the ultimate solution is to directly transfer the MP3 file to the server, and then directly use the absolute path reference on the page, so as to avoid the packaging of webpack, suddenly think of mp3,mp4 these media files, there is no point in webpack packaging ah!


require come in or put it directly in the build folder

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d84f-2bbe8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d84f-2bbe8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?