How to update node on mac

I was reading some documentation and i got to know that i need to upgrade my node version. you can check your current node js version by typing this.

Here is the quick way to update node JS version.  First of all just update your Homebrew package manager.

After Homebrew got updated. Now you can update your node js version.

After it updated. Try checking your updating node version.

   

Continue Reading

Hash vs chunkhash vs ContentHash

From last some days, i was thinking of writing this blog but got too busy with other things. Tonight i get some time on writing on this topic. This particular blog post i have not published here, This is actually published on medium.com. You can read full blog post by clicking here.   I also had written webpack 1 to webpack 2 migration blog post which you can read by clicking the link.   It’s too late tonight, almost morning now. I should take some nap now.    

Continue Reading

Migration to webpack-2

Recently i have done webpack migration for our React redux project to Webpack 2. There are lot of syntax changes was there (Which i will explain below) that needs to be made. Also webpack also provides features like Tree shaking, Caching, dynamic imports etc which leads to change in compilation time and bundle sizes. Let me give little overview of what all major syntax changes for migration and than we will discuss various feature to improve webpack bundling process. 1. Module.loaders changed to module.rules: In webpack 1, modules.loaders got changed to module.rules, loaders names array is changed to use.         …

Continue Reading