Using Symfony 4 with Webpack + Encore + Yarn, I want to handle images in my templates, and I am not really how to achieve this.
I put my image in my /assets/img/logo.png folder, and use this in my webpack.config.js:
.addEntry('logo', './assets/img/logo.png')
And after I run :
yarn run encore dev
Which generates /public/build/logo.js and /public/build/images/logo.aez323a.png files.
My question, is there a way to link Symfony asset() function to the file name with the hash in the filename ? or should I use other way to use the image in my templates ?