Category: JavaScript

0

push vs concat vs spread

push, concat and spread all of them are object/array manipulation methods. push – mutates the original data var a = [1, 2, 3]; a.push(9); // returns 4 console.log (a); // [1, 2, 3, 9]...

0

Webpack CommonsChunkPlugin, HtmlWebpackPlugin Setup

In this example, we will show you the capabilities of webpack’s commonsChunkPlugin. It is such an important feature of webpack that I ended up recording a video. Code splitting with webpack’s CommonsChunkPlugin, html-webpack-plugin! Single...