cordova-create-react-app icon indicating copy to clipboard operation
cordova-create-react-app copied to clipboard

Why build to `www` instead of the usual `build`?

Open Muzietto opened this issue 6 years ago • 0 comments

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?

Muzietto avatar Sep 12 '18 11:09 Muzietto