Uh oh!
There was an error while loading. Please reload this page.
Added WRITE_TO_DISK environment variable. Fixes #1070 - #6144
Conversation
facebook-github-bot
commented
Jan 7, 2019
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 cla@fb.com. Thanks! |
facebook-github-bot
commented
Jan 7, 2019
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Nargonath
left a comment
There was a problem hiding this comment.
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?
rodcorsi
commented
Jan 9, 2019
@Nargonath@ioloie my 2 cents, as you can see on the documentation of webpack-dev-server,
|
ioloie
commented
Jan 9, 2019
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"} |
Uh oh!
There was an error while loading. Please reload this page.
Nargonath
commented
Jan 9, 2019
@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 |
Nargonath
commented
Jan 9, 2019
@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. |
Nargonath
commented
Feb 10, 2019
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. |
Nargonath
commented
Mar 12, 2019
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. |
ifokeev
commented
Mar 14, 2019
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. |
Nargonath
commented
Apr 24, 2019
Sorry stale bot but no. 😛 |
skurfuerst
commented
Jul 15, 2019
Hey, any news to this PR? Would be awesome to have this merged! All the best, |
ryanwarsaw
commented
Sep 27, 2019
It would be great to have this merged, would make chrome extension development much easier. |
Janaka-Steph
commented
Apr 28, 2020
Pleaaase, merge this PR! |
Uh oh!
There was an error while loading. Please reload this page.
Removed unnecessary false Co-authored-by: Andrew Hyndman <ajhyndman@hotmail.com>
This would be really nice for building Chrome/Edge extensions. |
eddiemonge
commented
Jul 22, 2020
doesn't this still suffer from the contents of |
EricRabil
commented
Feb 19, 2021
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
writeToDiskoption to webpack-dev-middleware using a new environment variableWRITE_TO_DISK.The new option addresses #1070 and use cases such as creating browser extensions.