Vite: Set `assetFileName` based upon directory name
Given the project structure below, Vite will output both CSS files as index.<hash>.css which makes them difficult to debug. I’d like to alter the config to use the directory name if the file name is index: src/ –pages/ —-Home/ ——index.jsx ——style.css —-NotFound/ ——index.jsx ——style.css Unfortunately, the param of assetFileNames seems to be quite barren of … Read more