$ mkdir counter-webpack $ cd counter-webpack $ npm init -y $ npm i -D webpack webpack-cli webpack-dev-server $ touch webpack.config.js const path = require('path') module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, './dist'), filename: 'bundle.js' }, devServer: { contentBase: path.resolve(__dirname, 'public') } }