timarney / react-app-rewired

Override create-react-app webpack configs without ejecting
MIT License
9.8k stars 424 forks source link

Combine react-rewired start command with sst start command? #628

Closed Sebastian-Nielsen closed 2 years ago

Sebastian-Nielsen commented 2 years ago

If you use react-rewired, you have to replace the scripts section in package.json with

  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test",
    "eject": "react-scripts eject"
  }

So what do you do when the sst-doc tells you to replace the "start" attribute in the scripts section with "sst-env -- react-scripts start"?

Is it possible to combine react-app-rewired start and sst-env -- react-scripts start?