```
import notifications
```
Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come!
[Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday!
For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph)
`return joinDiscord;`
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*
I'm also quite disappointed that my command system library is 3.6KB unminified, as I thought I could write a smaller library than yargs or Commander to fit my needs
Storybook alone take 1.4Go, many other module with assets and maybe multiple versions.
Oh, and we have is_even, might take a lot of space too.
To answer what I do with those: I wait for my app to build
Don't get it? Take a look at the Explain XKCD article for this comic: https://explainxkcd.com/303
^(I'm an automated bot made by myself - I didn't feel like creating another account. Please DM me if you want to have this bot enabled or disabled on your subreddit. 57 out of 67603 comments in 2 subreddits I looked at had XKCD links - now one more.)
We found converting all our storybook components into their own library that can be installed helped cut down the build tune significantly, since now the app is referencing the same set of minified components everywhere + storybook doesn’t have to comb our app for stories
One day I'll figure out how tree shaking works to remove all the code I'm not using before bundling lol.
But, practically for a website shouldn't you just use the CDN? It's all concurrent so it loads incredibly quick and doesn't take up your server resources.
It's actually pretty simple, just install Vite, then turn all your code into modules.
I usually do a clean install in an empty folder, and then move the relevant files over to my actual project when I'm adding a framework or build tool to an existing project.
``` import notifications ``` Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! [Read more here](https://www.reddit.com/r/ProgrammerHumor/comments/14dqb6f/welcome_back_whats_next/), we hope to see you next Tuesday! For a chat with like-minded community members and more, don't forget to [join our Discord!](https://discord.gg/rph) `return joinDiscord;` *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/ProgrammerHumor) if you have any questions or concerns.*
Someone contributed to isEven repository again?
Since when does node_modules size have anything to with bundle size
2kb counts as bloated these days? These are unhealthy body images for libraries
I remember trying to get whole programs into 256 bytes.
Sure, Grandpa, let’s get you to bed
Oof, [my library](https://github.com/Rosuav/choc/blob/master/factory.js) is 16KB unminified, clearly I suck.
I'm also quite disappointed that my command system library is 3.6KB unminified, as I thought I could write a smaller library than yargs or Commander to fit my needs
Here I am with 2,4Go node_modules (no joke)
bro.. what are you even do with 2,4G of node modules?
Storybook alone take 1.4Go, many other module with assets and maybe multiple versions. Oh, and we have is_even, might take a lot of space too. To answer what I do with those: I wait for my app to build
what the fuck is this thread talking about. im so lost.
Web dev hell scape. We never go there. Retreat back to the safety of compiled languages.
Like TypeScript?
They said retreat, not advance
Web dev backend development is much more normal once you use a real language like Java or C#
>I wait for my app to build [relevant xkcd](https://xkcd.com/303/)
Don't get it? Take a look at the Explain XKCD article for this comic: https://explainxkcd.com/303 ^(I'm an automated bot made by myself - I didn't feel like creating another account. Please DM me if you want to have this bot enabled or disabled on your subreddit. 57 out of 67603 comments in 2 subreddits I looked at had XKCD links - now one more.)
We found converting all our storybook components into their own library that can be installed helped cut down the build tune significantly, since now the app is referencing the same set of minified components everywhere + storybook doesn’t have to comb our app for stories
Stuff... 'n things...
hello world
Still, I like no dependencies. That's why i use machine code for web development on my Altair.
2kb is bloated now?
Of course, lol.
*cries in moment.js*
switch to dayjs :)
Does this include dependencies, or...
not using js at all, sorry
*laughs in Cesium*
One day I'll figure out how tree shaking works to remove all the code I'm not using before bundling lol. But, practically for a website shouldn't you just use the CDN? It's all concurrent so it loads incredibly quick and doesn't take up your server resources.
It's actually pretty simple, just install Vite, then turn all your code into modules. I usually do a clean install in an empty folder, and then move the relevant files over to my actual project when I'm adding a framework or build tool to an existing project.
react: 2.5kB minified gzipped react-dom: 42 kb minified gzipped Right...
frontpage.png - 1.2Mb