webpack.config.js
module.exports = { entry: { main: './src/index.js', }, }
package.json
{ "scripts": { "watch": "webpack --watch" }, }