npx webpack-cli init
npm install --save-dev webpack-dev-server
// place this code in webpack.config.js module.exports = { context: __dirname, entry: 'src/app.js', output: { path: __dirname + '/public', filename: 'app.js' } }