Being able to reference image files from assets

I did look in to this @bep but couldn’t work out the correct approach.

Would I drop the whole directory in assets then in config.toml (in root)

[module]
    [[module.mounts]]
        source = "assets/library/img"
        target = "static/img"

Or drop the directory in static and then mount the scss directory in to assets eg:

[module]
    [[module.mounts]]
        source = "static/library/scss"
        target = "assets/scss"

Thanks for your help, very much appreciated.

Edit: I think I may have figured this out in case this helps anyone else searching in the future.

First in confit.toml (or .json or .yaml equivalent) you have to mount all the standard directories.

The easiest way to do this is go here and copy and paste all the module mounts.

Then add additional blocks to mount your static assets (images, fonts etc) in the static folder. Example:

[module]
    [[module.mounts]]
        source = "assets/library/img"
        target = "static/**library**/img"

Note the “library” is in bold because if the directory structure doesn’t match then relative links in your CSS files for example won’t resolve.