react-native icon indicating copy to clipboard operation
react-native copied to clipboard

jsbundle size is about 500k, how to make it smaller?

Open heyanyanchina123 opened this issue 11 years ago • 4 comments

I use curl http://localhost:8081/index.ios.bundle?dev=0&minify=1 -o main.jsbundle to generate a document,but it is about 500k+, how can I make it smaller?

heyanyanchina123 avatar Sep 10 '15 03:09 heyanyanchina123

gzip?

ide avatar Sep 10 '15 03:09 ide

Hey there! It's probably best to post this kind of question in StackOverflow, you're more likely to get a good response. Issues are for bugs or feature requests.

At the moment there is some work being done on allowing for splitting the bundle into separate files, which would not decrease the overall size but could allow you to, for example, update only one part of the bundle if you need to.

brentvatne avatar Sep 10 '15 03:09 brentvatne

Hi brentvatne, do you know how to split bundle file

dongtong avatar Nov 19 '15 08:11 dongtong

@brentvatne , Hi brentvatne, do you know how to split bundle file

cnsnake11 avatar Jan 14 '16 09:01 cnsnake11