E
E
Elena2020-08-01 18:09:22
webpack
Elena, 2020-08-01 18:09:22

Why does webpack.config.js in entry not find the path to the file?

Maybe someone knows why it gives an error if the index.js file is written not in the src folder, but in another one?
If you keep the index.js file in the root of the src folder, then everything works like this:
5f25849b6e8ad087372111.png

If you transfer the index.js file to the scripts folder, it gives an error on the command line. Why is this happening? After all, in webpack.config.js I write the path to the index.js file.
5f258577873a2595869762.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-08-01
@yarkov

And src in the path is not superfluous?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question