Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow "watch mode" on npm scripts after ejecting #1172

Closed
rodryquintero opened this issue Dec 6, 2016 · 7 comments
Closed

Allow "watch mode" on npm scripts after ejecting #1172

rodryquintero opened this issue Dec 6, 2016 · 7 comments

Comments

@rodryquintero
Copy link

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.

@gaearon
Copy link
Contributor

gaearon commented Dec 6, 2016

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?

@rodryquintero
Copy link
Author

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.

@gaearon
Copy link
Contributor

gaearon commented Dec 6, 2016

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

@gaearon
Copy link
Contributor

gaearon commented Dec 6, 2016

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

@rodryquintero
Copy link
Author

rodryquintero commented Dec 6, 2016

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.

@gaearon
Copy link
Contributor

gaearon commented Dec 6, 2016

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

@gaearon gaearon closed this as completed Dec 6, 2016
@rodryquintero
Copy link
Author

rodryquintero commented Dec 6, 2016 via email

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants