Main assets directory structure

I am new to gulp having moved on from grunt because of sage. I noticed that sage gulp configurations flattens directory structure while running js or css tasks. Can anyone help me a possible configuration change needed to maintain structure.

assets
----js
------frontend
--------xyz.js
------backend
--------abc.js

dist
---frontend
----xyz.js
---backend
----abc.js