Restructuring from www to app folder in order to minify

I’m just looking into this myself. I think I’m going to:

  1. Create a new folder in my root which is the contents of my existing www folder including all 3rd party bower components, sass files etc
  2. Create 2 gulp scripts/tasks (for dev and release) to copy the necessary files into the (now empty) www folder.
    Dev script will copy normal non minifed, non-concatenated files (or do the mini/concat but use mapping files) to enable easy debugging
    Release script will minify, concantenate etc and then copy.

So ionic serve will still just look at the www folder - no change there

Please see Improve assets setup in ionic framework

1 Like