I wonder if its possible to customise the build folder to be named www so create-react-app could be used with Cordova. Cordova expects all assets to be in ./www.
Please see https://github.com/facebookincubator/create-react-app/issues/778. This is easy to achieve by adding an explicit copy command so we are unlikely to make this configurable.
You are right. Didn't see that already asked here.
{
"homepage": "../www/",
"scripts": {
"build": "react-scripts build && cp -r ./build/* ./www",
}
}
With that it works!
This build line works in Windows
"build": "react-scripts build && robocopy ./build ./www /mir",
Most helpful comment
Usage in Cordova apps
With that it works!