:: Set working directory to this file directory
cd /d %~dp0

:: Install webpack if not installed 
npm list webpack@5.105.4 --depth=0 -g >nul ^
|| npm install webpack@5.105.4 -g ^
&& npx webpack@5.105.4

:: run webpack
:: default config ./webpack.config.js