Execute shell commands on each compilation (before and after).
npm i -D webpack-pre-post-plugin
const PrePostPlugin = require('webpack-pre-post-plugin');
// ...webpack config file...
plugins: [
new PrePostPlugin({
pre: ['echo "Webpack Start"'],
post: ['echo "Webpack End"']
})
],