Ionic serve error missing www folder


#1

Hi all,

I’ve found a problem with the ionic 2 tutorial whereby I will create a new project based off of it, commit and push the resulting files to GIT and then pull them down fresh in another repo followed by ‘ionic serve’ it complains there is no www folder and refuses to build.

This is due to the www folder being in the default .gitignore file. I’m reluctant to remove this folder from the gitignore folder as it wouldn’t be in there for no reason and I’m well aware that it’s where the built files go so don’t necessarily want to commit them to GIT.

Any thoughts? I just want to have a nice repo where anyone can pull down and get started straight away.


#2

Just create a ‘www’ folder after clone.