Project setup Install dependencies npm install || yarn Compiles and pack npx webpack run in browser execute the flowing code npx webpack then open the file 'dist/main.html'