How to fixed uncaught unexpected data size
Fixing uncaught unexpected data size in html build.
This error happened when you make a build in windows and them commit that html build it git. When git commit it replace line endings. So file size can be changes and runtime can’t load it.
To fix it you need:
1)add .gitattributes file to project root
2)in that file add “* binary”. It said to git that all files is binary add it will not change file endings. example
* binary
3)commit that file
4)fixed current endings https://help.github.com/articles/dealing-with-line-endings/