After digging a bit, I understood that the other rules of module.export does not search by directory or anything, but rather handles files imported from the main js that is in the entry point I suppose.
How can I make it instead get a whole directory for example block/css/block.css
block/css/block.editor.css
then build those into the appropriate folder with appropriate names
Now when I run it on ‘blocks/index.js’ it has the import ‘document’ inside it which make the rest of code handles css imported to this js file, when I change to my js file that has no import it run without an issue but my css folder is not generated.