wp_localize_script, I can set up the assets path to give a marker to google map:
// assets/scripts/routes/example.js var iconBase = sj.templateDirectoryUri + '/dist/images/'; icon: iconBase + 'sj-logo-marker.png',
This returns a path that seems right:
But I get 404 in the console. Also, althoug this PNG is in its place:
it is not in the source inpector (there is no
What is the right way to reference assets from JS?