Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

way too big template size in prod mode #36

Open
ghost opened this issue Mar 4, 2018 · 3 comments
Open

way too big template size in prod mode #36

ghost opened this issue Mar 4, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2018

I'm new in react like libraries, i'm using angular for 2 years now, and i was curious how to make even better and faster thing. (I have created many component of my own, i didn't like the template system, as it's growing the js size)

I'm not sure how react is working, but your app seems to me very big to me.

I have generated a source-map-explorer result by picking the build. (I have checked the prod version)
I have a feeling it's not minified, webpack can be configured better.

It would be very good, if there would be any comparison on the inferno site, regarding to the bundle size.

image

Looking at the angular the 404.js for example. It throws me that in prod mode the 400 bytes goes to 4KB somehow. Angular is more predictable in this way, if the template size is small, than you should get smaller result, but in this case i don't know what happens. I have used typescript and i have bigger templates on my android folder and the size is less or similar.

Don't forget i'm experienced, but i'm newbee in react like systems, and i have limited time to evaluate and change my mind. Thanks for your help. My question is related to what i'm missing out from the comparison on inferno main site. I have a 40 pages app and the size is about 100KB + angular 240KB.
I have rewritten ionic, which blown me up, as my js and css size was 2.5-3MB minified.

I'm investigating how to replace angular with some sort of virtual dom system. (I might consider only to pick up the idea, as i might not introduce "template" system, just using decorators, so especially going back to vanilla js on build size)

I haven't seen any official inferno forum, just github repository.

Ps.: I had to add babel-register to make this project build-able. I now that is an old project, so it touched inferno in the initial phase.

@ghost ghost changed the title way too big size way too big template size in prod mode Mar 4, 2018
@Havunen
Copy link

Havunen commented Mar 5, 2018

I pinged @nightwolfz in slack about this issue.

@nightwolfz
Copy link
Owner

@fssrepository Can you checkout the next branch?

The bundle size should be down to 68 kb (minified+gzipped)

@ghost
Copy link
Author

ghost commented Apr 4, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants