Project Structure Ionic: src files copied to www?


#1

Hi guys,
i’m trying some app examples on Ionic while i’m reading the documentation.
Here https://ionicframework.com/docs/intro/tutorial/project-structure/ is said that with ionic serve the raw code in src in transpiled into the ES5 version of JavaScript.
My questions are the following:
-when i run ionic server all the code in src is copied in the www folder (also assets, css files etc)?
-testing the app on a device, like android platform, does the same thing of copying to www folder or it does something different like copying the files inside the folder platforms?

Thank you :slight_smile:


#2

Pretty much all non-code files should be in assets as this is copied over.

More or less: The finished content of www is copies over to the platform_www folder inside the generated platform project.