0

I've started using bit so that I can reuse common components across different react projects.

This is great, but I've run into a rather annoying situation when I want to modify one of my bit components.

They live in the components folder at the root of my project's directory. This outside of the src folder which I guess is what cra is watching when I run the yarn start command.

So when I modify the component code, nothing happens and I have to rerun the yarn start command to see any of the effects of my changes.

Is it possible to tell cra to watch folders other than src for changes and trigger an update?

Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
Gabe O'Leary
  • 2,010
  • 4
  • 24
  • 41
  • In the [bit docs](https://docs.bit.dev/docs/quick-start#add-files) the add examples are all in the `src` dir can't you just do that? Otherwise I would think you have to eject the app to configure another dir. – DCTID Feb 05 '20 at 23:25
  • the problem is that when I add a component from bit to my project it automatically puts them in a `components` folder outside of the `src` folder. Perhaps I can configure that location... – Gabe O'Leary Feb 06 '20 at 00:27

0 Answers0