cms-vue-boilerplate icon indicating copy to clipboard operation
cms-vue-boilerplate copied to clipboard

Cannot upload main.js bigger than 1.5MiB

Open angrynerds-beniamin opened this issue 3 years ago • 2 comments

I can't upload a file bigger than 1.5MiB to my dev env in Hubspot.

image

I was trying to split it into chunks but it is not working for this case. Those chunks have to be imported in the HTML. The problem is module.html file, which is an entry point for this module, is generated by HubSpotAutoUploadPlugin and I have no option to change it during built. Do you have any solution for that problem?

angrynerds-beniamin avatar Nov 15 '21 15:11 angrynerds-beniamin

At this time, there is no way around the 1.5MB limit. I'm not sure if this is exactly what you're looking for but it might help to look at this example where the upcoming-events entry point is imported within a module

anthmatic avatar Nov 16 '21 15:11 anthmatic

Thank you! Those links helped me with developing a new idea of how to fix this problem. I'll try it and share the solution if it will be working. 🎉

angrynerds-beniamin avatar Nov 17 '21 10:11 angrynerds-beniamin