This post is about an issue that I am having using webpack and Vue.js and the stable version of Docker for Windows.
It seems that large compiled files ( more than 1 Mb ) are splitted into chunks when sent over to the Virtual Machine, and it happens most of the time that they end up corrupted ( parts of other files seems to get injected in between files chunks ).
I came across a few reported bugs that are happening on both Windows and MacOS, it seems that their similar problem gets solved by changing Apache configuration to
sendfile Off AND/OR
MMAP Off inside the Dockerfile :
RUN sed -i -e 's/EnableSendfile On\/EnableSendfile Off/g' /etc/apache2/httpd.conf RUN sed -i -e 's/EnableMMAP On\/EnableMMAP Off/g' /etc/apache2/httpd.conf
This did not fix anything for me…
As you can see, without any code change, after each hard-refresh, these are the errors that come up, every time at a different line, because of wrongly merged files chunks :
Does anyone in the community have an idea of why this keeps on happening ?