i build a empty scene in WebGL . but build file size was 110 Mb .
why it make a large file size in default without any object in there.
are there any way to reduce size ?
use the compressed files
Also, which version of beta are you using? Beta 21 now does not compress the WebGL builds when you are doing a Development build. This speeds up build time and is by design.
Turn off Development Build in Build Settings
i use Beta 15 .
and it don’t have compressed option in build setting or player setting
Development Build is Turn off.
the files that have large size , filename.js in Data folder. (110 MB) and filename .jsgz in Compressed Folder (15 MB)
I was talking about files inside the compressed folder, those are the files you would distribute. Data folder is uncompressed version and mainly for development/debugging phase.
Remember that even with empty scene most of the game engine code is included in the files because it’s not a plugin game.
ok thanks .
so i don’t need to Data folder for publish on the web?
and minimum published file size is 15 MB?
you don’t need data if you can configure your web host to only use compressed files, by default Unity only creates helper file (.htaccess) for apache servers
if you use max optimize settings and strip bytecode, etc. it should be under 5mb for empty scene
i use strip bytecode and it make 14MB file size with data folder.
compressed folder 2mb.
but when published On the web it’s not working and give me error.
on the local it’s work.
you can see on this link www.ariyamen.com
when i delete Data folder still show same error.
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
uncaught exception: abort() at jsStackTrace@http://ariyamen.com/Data/WEGL.js:1:18533
stackTrace@http://ariyamen.com/Data/WEGL.js:1:18716
abort@http://ariyamen.com/Data/WEGL.js:66:66358
Edh@http://ariyamen.com/Data/WEGL.js:57:324523
AIb@http://ariyamen.com/Data/WEGL.js:13:285266
wIb@http://ariyamen.com/Data/WEGL.js:13:284017
GQb@http://ariyamen.com/Data/WEGL.js:13:472067
.func@http://ariyamen.com/Data/WEGL.js:1:25561
callRuntimeCallbacks@http://ariyamen.com/Data/WEGL.js:1:20905
ensureInitRuntime@http://ariyamen.com/Data/WEGL.js:1:21405
doRun@http://ariyamen.com/Data/WEGL.js:66:65304
run/<@http://ariyamen.com/Data/WEGL.js:66:65660
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information
how to prevent to build Data folder ?
why would you prevent it? you don’t need to use if you don’t want to but it’s always generated cause compressed is probably created out of it and anyways not all sites support compression setup without admin rights