Creating Dynamic JS and CSS file for each Template/modules

New to the Bud settings.
Is there any ways that we can compile dynamic JS and CSS file for each Templates or modules

Also how it working when we use yarn dev - as when we do that it actually create js file of any style file

I am confused on dynamic entry points for asset build.