Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

HTML file size exported from Unity is too large

Discussion in 'WebGL' started by SalahJaber, Jun 11, 2015.

  1. SalahJaber

    SalahJaber

    Joined:
    Jun 9, 2015
    Posts:
    2
    Hello,

    When exporting to WebGl, the file size is too large even if the project is empty, its 30MB, Can I minimize the file size to less than 5MB.
    å
    Thank You..
     
  2. PlatformSix

    PlatformSix

    Joined:
    Feb 27, 2014
    Posts:
    57
    I tried to reply when you posted this in Answers, but it looks like Answers is broken and never displays my replies:

    "Yes, quite easily if you have a mod_rewrite enabled server you're uploading to. First make sure stripping is on in Player Settings and optimisation level is set to Fastest (very slow builds) in Build Settings.

    The "Compressed" folder should be less than 10MB now. You can delete the "Release" folder, and then just upload all the remaining files including the .htaccess."
     
    liortal likes this.
  3. SalahJaber

    SalahJaber

    Joined:
    Jun 9, 2015
    Posts:
    2
    Thanks.. but when I deleted the "Release" folder, the game doesn't run..