Webpack: Loading images from html templates

If you are using HTML templates in Webpack 2, in addition to use the file-loader you need to change in your HTML:

<img src="https://stackoverflow.com/questions/32753650/images/foo.png" />

to this

<img src=<%=require("https://stackoverflow.com/questions/32753650/images/foo.png")%> />

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)