Let’s Make Our Bundle Size Even Smaller
▻https://hackernoon.com/lets-make-our-bundle-size-even-smaller-7a5727bb110?source=rss----3a8144e
If you ever developed a SPA (Single-Page-Application), where ever it was on Angular, #react, Vue or something else, You probably noticed that all the hard work you’ve put into your app goes to one minified .js file and one .css file. Those files contain all your dependencies and functionalities of the app.sometimes, those files could become quite big and increase the loading time of your app this something I stumbled upon during my work.With #webpack for example, the files are made after “Tree-shaking “ and Uglify.Tree-shaking is the process of removing all the unused function and variables from the code, which makes our app a lot smaller (basically we only use a small part of our dependencies and a large part of the code isn’t even being called).Uglify (as it sounds like) is the process of (...)
#javascript #npm #coding