Post

Everytime I make a one-line code change to my website, it cache busts all the js files and the users have to download the whole website code again when they visit the site. so, I wrote this tiny vite plugin: www.npmjs.com/package/vite...

npmjs.comvite-plugin-extract-vendorsA vite plugin to extract external libraries from node_modules to vendors directory to improve caching of 3rd party js files. Latest version: 0.0.1, last published: 3 hours ago. Start using vite-plugin...

Instead of shipping the usual bundled js file, I chunked all the node_modules files separately to ensure only application code is updated whenever I push minor updates to my webpage and the library code remains cached

0 reposts0 likes

No replies yet.