The webpack.config.js file will have an entry object to provide an entry point to the app. The entry object configuration is as follows. The following code means our starting point for the dependency graph is the index.js file:
// source path for the codeconst srcPath = path.join(__dirname, 'src').....// where our src file is present and sets context for entrycontext: srcPath,// single entry pointentry: { app: './index.js',}