Turn to webpack for picture processing in html

currently used html-loader can only handle in html , but < div style= "background-image:url (xxx.png)" > < / div > can"t handle it. How to configure webpack?

May.30,2022

<div :style="{background-image:'url('+require('xxx.png') + ')'}"></div>

found it, leave a door, hoping to help the people behind https://github.com/webpack-co...

.
Menu