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?
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?
<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...
.