-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Added WRITE_TO_DISK environment variable. Fixes #1070 #6144
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
base: main
Are you sure you want to change the base?
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed. If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it would be nice to allow a destination override instead of the default dist
folder by adding another new environment variable. What do you think?
@Nargonath @ioloie my 2 cents, as you can see on the documentation of webpack-dev-server,
|
This PR has a shortcoming which is that the Static files are loaded by the middleware upon receiving a HTTP request for the file. This means that this won't fix #1070 in it's entirety by itself. But it does put us in a much more manageable position since it's straightforward to use something like "scripts": {
"watch:react": "react-scripts start",
"watch:static": "cpx \"public/**/*.*\" dist --watch",
"build": "react-scripts build",
"start": "npm-run-all -p watch:* ",
"test": "react-scripts test",
"eject": "react-scripts eject"
} |
@ioloie I agree that is not the best solution yet but it still is better than the current state where you have to rely on external tools: https://github.com/Nargonath/cra-build-watch |
The To support custom output paths would mean making Webpack's |
@ioloie Fair enough, LTGM. In the end I feel CRA should do the same that |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Well we are just waiting for someone to merge it IIRC. 😃 |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
The interest in the PR is still here, we just need it to be merged or someone to articulate his feedbacks if not suitable for merge already so we can move forward with it. |
need this also |
Also in need for this. Thanks. |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Sorry stale bot but no. 😛 |
Hey, any news to this PR? Would be awesome to have this merged! All the best, |
It would be great to have this merged, would make chrome extension development much easier. |
Pleaaase, merge this PR! |
Removed unnecessary false Co-authored-by: Andrew Hyndman <[email protected]>
This would be really nice for building Chrome/Edge extensions. |
doesn't this still suffer from the contents of |
Just wanna say this seems to be working fine for me. I've got an npm package |
This PR will allow us to pass the
writeToDisk
option to webpack-dev-middleware using a new environment variableWRITE_TO_DISK
.The new option addresses #1070 and use cases such as creating browser extensions.