webpack/memory-fs

writeFileSync does not accept empty content

DanielSWolf opened this issue · 0 comments

I'm trying to create an empty file. So I'm calling fs.writeFileSync('/foo.txt', '');. However, this throws an exception with the message "No content".

I don't see any reason why it shouldn't be allowed to pass an empty string as file content.