Entry

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',}

Get Learning Salesforce Lightning Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.