mathieustan / vue-datepicker

A clean datepicker made with VueJs
https://vue-datepicker.netlify.com/
MIT License
165 stars 47 forks source link

Bundle Size #45

Closed Kunoacc closed 4 years ago

Kunoacc commented 4 years ago

When building from vue ui, the size of the bundle is actually large at 140KB. It's the largest dependency in my project. Is there any way to shrink this?

image

mathieustan commented 4 years ago

Thanks @Kunoacc.

I'll look at it, and try to improve this asap

mathieustan commented 4 years ago

It seems like css in vue components take alot of space. I’ll extract style in a css minified file.

Kunoacc commented 4 years ago

Awesome!

Thanks @mathieustan

Any way to be able to pick what date library to use?

i see you're using dayjs and in our project we use moment. It'll be an extra unnecessary dependency that we wouldn't end up using. Probably a way to specify a default?

mathieustan commented 4 years ago

I will delete dayjs one day to use only javascript dates. But for the moment, in fact, you will have 2 libs to manage the date.

Maybe you should use dayjs instead of time which is much heavier :)

By the way dayjs is really thin.

mathieustan commented 4 years ago

Previous release v0.2.3-rc.2 :

Capture d’écran 2020-05-26 à 12 49 04

Latest release v0.2.3

Capture d’écran 2020-05-26 à 12 49 22

I'll close for the moment. Let me know.