Actually your version is more correct as we have to specify the path tou our entry file which should be ./index.js. Thanks for mentioning @stuartambient
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Slight change required on my end - in webpack.config.js
entry: './index.js'
Actually your version is more correct as we have to specify the path tou our entry file which should be
./index.js
. Thanks for mentioning @stuartambient