-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Copy file permissions #316
Copy file permissions #316
Conversation
Add 'copyPermissions: true' to the entry for the files to enable.
Just to be safe.
…-file-permissions Conflicts: README.md src/writeFile.js
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.
Thanks for PR, but it is invalid solution:
- It is doesn't work when you use memory fs
- It contains constants what doesn't work on windows
- We should use only
fs
fromwebpack
- Strange code with
devServer
- No tests.
How it should be solved (exclude memory fs):
- We should implement
perrmissions
property inwebpack-sources
(https://github.com/webpack/webpack-sources) - Write
permissions
here https://github.com/webpack/webpack/blob/master/lib/Compiler.js#L387 - Add here
permissions
property https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/src/writeFile.js#L121
Maybe we can use mode
name property to avoid misleading between node and our implementation
Thank you for including this feature., When do you think this will be merged? Is there any other options in the meanwhile? |
@anandbaskaran please read comment above |
This has drifted quite a bit since January and I don't think I will be able to make it correct + get the needed PRs into webpack. |
Reviving PR #119
Would resolve issue #35
This is updated to build against the latest master. Just as in the original PR I have not been able to add unit tests because I can't stat the emitted files.