Change generated js files location to another folder

I would like to accomplish 2 things:

  1. All the js files generated by ionic/angular, instead of being in the root, I would like them to be in a js folder (automatically)

  2. Other assets that are referenced by SCSS, are being recopied to the root of my project (while they are referenced from and to /assets/). I think this is something inherent to webpack or ionic.

Any idea on how to accomplish this?

Thanks,