Closed zetekla closed 6 years ago
I’m not at my laptop, but this was something I neede, too. I can post/pull request instructions when I get home... but I was able to by creating a dummy app and comparing my package.json file.
Be sure to blow away any custom .babelrc and your node_modules. I use Flow and my babelrc file ruined everything.
I’ll make a note to add a pull request with my end result.
This is simple. In my project, I inserted the "custom-react-scripts": "0.0.23"
on package.json, remove react-scripts and run the npm install
command. After this, you will need to create the environment file .env in the root and modify the configuration options.
ps.: Make sure that react-script package doesn't exist in your node_modules directory.
@rafiuske is need to replace the react-scripts start to custom-react-scripts start in package.json
@rafiuske I will give it a try and report back! Thank you for your input.
how to use this package in an existing create-react-app ? Can I just install it with
npm i -S custom-react-scripts-ts
and replacereact-scripts start
withcustom-react-scripts start
in package.json?