Closed milan-ciganovic closed 1 year ago
I've removed from the Dockerfile build:
RUN chmod +x ./build_tools/patch_web.sh
RUN ./build_tools/patch_web.sh --ignore-whitespace
And after the build it works, and it's also way faster... But I'm not sure what is the difference?
@milan-ciganovic is what you're building Open Source so we can read the code to help understand the issue? 💭
@nelsonic It's not open source, unfortunately, I didn't do this part diff -u old.js new.js > file.js.patch
Do I need to do it in the build process as well? I'm using all the files as mentioned in the build_tools example project.
Ok. without a bit more insightful view of the project it's like trying to diagnose in the dark. Yes, please follow the instructions that @LuchoTurtle put together step-by-step. If you are still stuck we definitely want to know so that we can improve/update the instructions. Thanks.
@milan-ciganovic please check https://github.com/dwyl/app/pull/335
I believe there was a line missing from the .patch
file which would initialize the variable that you're having trouble with IN_PROCESSING_REQUESTS
.
If it works, give us a heads up :)
Works great :) Got 76 performance from Lighthouse. Thanks guys!
Awesome! Closing :)
Hi,
I've followed the guide per Speeding Up Flutter Web Load Time 🏎️ Everything works fine locally, but when deployed I get this error and fails to load main.dart.js:
I've copied all the files from
build_tools
folder, added also.And added to index.html: