satya164 / quik

:rocket: A quick way to prototype and build apps with React and Babel with zero-setup.
525 stars 30 forks source link

Super heavy packaging #260

Closed jaimeagudo closed 7 years ago

jaimeagudo commented 7 years ago

Just doing

$ cd template
$ quik

I see on the network tab the index.js is 2.2MB

screen shot 2017-04-20 at 15 41 49

Am I missing something?

satya164 commented 7 years ago

This is development build + sourcemaps are inlined. Production bundle is much smaller.

jaimeagudo commented 7 years ago

Thanks for your fast reply 👍 . I guessed that (it seems a lot anyway) but was just asking cause this

quik --html --output out.html --production produces a 2.4MB out.html file so I thought there was some wrong root on my side

satya164 commented 7 years ago

@jaimeagudo it's because the sourcemap is inlined. try with --sourcemaps false

jaimeagudo commented 7 years ago

That's my point :)

Obviously a --production build should remove the sourcemaps, I encourage you to change --production behaviour my dear friend :)

Thanks for sharing