To use BrowserSync, we will need to install the BrowserSync client and the browser-sync-webpack-plugin to integrate BrowserSync with our WebPack build process. Run the following command to install them as devDependencies to your project's package.json file:
npm install browser-sync browser-sync-webpack-plugin --save-dev