I have several avatar images under my
public/avatars/ and I want in my
lib/globals.js to be able to store all the avatars paths (e.g., ‘/avatars/bee.png’) into a global array called AVATARS. At the moment, I am doing it manually in
AVATARS =; AVATARS = '/avatars/bee.png'; AVATARS = '/avatars/bird.png'; AVATARS = '/avatars/cat.png';
But I am sure there must be a more modular way, given that the number of avatars will become very very large in the future.