Create-react-app: Allow "watch mode" on npm scripts after ejecting

Created on 6 Dec 2016  Â·  7Comments  Â·  Source: facebook/create-react-app

I have successfully ejected a create react app I created but now I want to do 2 things:

  • Disable wepack server because I need to continue development on another server (apache)
  • Allow watch mode on the compile scripts that come with React.

If this is already possible please include how to do this in the documentation.

Thanks, great work.

proposal

All 7 comments

I don't quite understand what you mean by

Allow watch mode on the compile scripts that come with React.

I'm also not sure what "disabling" development server means.

Can you describe your desired workflow in detail?

Sorry for not being a bit more detailed.

Watch mode: simply put, to be able to do the equivalent of webpack --watch and have the files compile everytime a change is made

Disable Webpack Dev Server: in my particular case is used create-react-app to scaffold the UI, but now I need this to work on the actual server along with my server scripts (apache + intersystems cache database). So I won't be using/needing Dev Server anymore.

Hope this explanation is a little better. Thanks for the quick reply.

Do I understand correctly this is the same request as #1070?

Would you want watch to run in production or development mode? That is, would you want to see sources minified or not?

Ok, that sounds pretty much like what I need. For the record, I did search the issues for similar requests but did not see this one.

Is this in the works? If not, are there any workarounds to achieve watching files?

Edit: I Just saw your latest reply. Yes, would like this in dev mode. I don't mind minified sources since you have the source maps enabled.

Got it. Let’s track this in #1070 then. It’s not a priority right now but we’ll want to address this eventually.

Thanks for helping Dan, as always.

El El mar, 6 de dic de 2016 a las 8:35 a.m., Dan Abramov <
[email protected]> escribió:

Got it. Let’s track this in #1070
https://github.com/facebookincubator/create-react-app/issues/1070 then.
It’s not a priority right now but we’ll want to address this eventually.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebookincubator/create-react-app/issues/1172#issuecomment-265150847,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNmSugU59XbsyW7kTOX8c6ZKAXl64OCks5rFWSygaJpZM4LFFym
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnachtigall picture jnachtigall  Â·  3Comments

AlexeyRyashencev picture AlexeyRyashencev  Â·  3Comments

ap13p picture ap13p  Â·  3Comments

alleroux picture alleroux  Â·  3Comments

barcher picture barcher  Â·  3Comments