How does webpack handle pictures in html?

because pictures are preloaded in js , the pictures in HTML use data-src instead of src . I found that url-loader didn"t process these pictures, and then I used html-loader and didn"t process them either.

  {
    test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
    loader: "url-loader",
    options: {
      limit: 5120,
      name: assetsPath("images/[name].[hash:7].[ext]")
    }
  },
  {
    test: /\.(htm|html)$/i,
    loader: "html-loader?attrs=img:src img:data-src"
  }
Mar.31,2021

the path of the picture is written as data-src=require ('xxx.jpg')

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-1b3818a-2c0f5.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-1b3818a-2c0f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?