HtmlWebpackPlugin cannot be parsed after using html-withimg-loader?

problem: because you want to introduce pictures directly into the html file through the img tag, html-withimg-loader is configured in webpack. But in this way, a similar <% = htmlWebpackPlugin.options.title% > in the html file cannot be parsed!


Why do you want to use a small loader, like html-withimg-loader? you don't have this problem if you use html-loader .


using html-loader can also cause conflicts, and htmlWebpackPlugin can introduce pictures through requier.

<img src="<%= require('./images')%>" alt="picture">
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-1ea026b-1ab2.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-1ea026b-1ab2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?