cordova-create-react-app
cordova-create-react-app copied to clipboard
Why build to `www` instead of the usual `build`?
I am trying to use your instructions in the README. I am still struggling with a sequel of error messages originating from the yarn run eject
step: missing babel-loader
, etc.
Question is: all cordova apps have their source code inside www/
, so I don't understand why you use that directory as build target. I fear that the build run will wipe it away every time, forcing me to move my source code elsewhere. But then why not leave the build target where create-react-app
puts it?
On the other hand, I do not see how to integrate the various cordova build <platform>
commands in the collection of scripts of the React app without ejecting it.
Can you please shed some more light on this subject?