A
A
Alex Polyakh2017-08-07 11:14:46
JavaScript
Alex Polyakh, 2017-08-07 11:14:46

Create-react-app config after 'eject command how to connect?

The task is to rename the folder build to dist to work in Jenkins.
Good time of the day, please tell me, I used the create-react-app build, ran the 'eject' command, got the config folder at the root, changed in the patch.js file on line 44 appBuild: resolveApp('build' to appBuild: resolveApp('dist') nothing worked ( npm run build worked, the package did not change the name to dist ), deleted all the contents of the file, ran npm run build everything works without errors, please tell me where to connect this config after the 'eject' command? Thank you very much!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2017-08-07
@gadfi

if you went to eject just to rename the folder, then at least you were in a hurry
to link the build and dist folder and you will be happy
PS I don’t know how to do it from the console, but like this from far https://forum.farmanager.com/viewtopic. php?t=5312
links work everywhere on windows and osx and linux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question