Skip to content

Feature: support different build folder #786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pke opened this issue Sep 27, 2016 · 4 comments
Closed

Feature: support different build folder #786

pke opened this issue Sep 27, 2016 · 4 comments

Comments

@pke
Copy link

pke commented Sep 27, 2016

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.

@gaearon
Copy link
Contributor

gaearon commented Sep 27, 2016

Please see #778. This is easy to achieve by adding an explicit copy command so we are unlikely to make this configurable.

@gaearon gaearon closed this as completed Sep 27, 2016
@pke
Copy link
Author

pke commented Sep 27, 2016

You are right. Didn't see that already asked here.

@pke
Copy link
Author

pke commented Sep 27, 2016

Usage in Cordova apps

{
  "homepage": "../www/",
  "scripts": {
    "build": "react-scripts build && cp -r ./build/* ./www",
  }
}

With that it works!

@martinduo
Copy link

This build line works in Windows
"build": "react-scripts build && robocopy ./build ./www /mir",

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants