Build failed in Ionic Pro because missing the www\

The build is failed because of:

No www directory found. (1)You must either have a build script which produces your app in the www directory or (2)commit the www directory to version control.

I have tested (2), build was successful but app has issues in iOS (camera and Gallery usage).
so what about (1)? How can I have such a build script? I already have this in package.json:
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build:local”: “ionic-app-scripts build”,
“build”: “true”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”