Skip to content

Crossplatform solution for changing build directory #6211

Closed
@TheKnarf

Description

@TheKnarf

I need to change to build directory for using create-react-app.

In issue #3824 it was recommended to add a postbuild step:

  "postbuild": "cp build/* restapi/wwwroot"

That works, but pushing it a colleague working on windows started complaining that the build now crashes on his computer (since mv is not crossplatform).

Is there any way of doing this in create-react-app now in 2019 without ejecting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions