Answer the question
In order to leave comments, you need to log in
Bundle.js file not available (React/webpack)?
Good afternoon! Please explain why with a react / webpack project bundle, the project is going to work, the file is available from the browser ( localhost:3001/bundle.js) , but the bundle.js file itself is not visible in the project folder, in any way. I tried to change the names of the paths, the file, nothing changes. What is this magic?
I work on Windows.
Answer the question
In order to leave comments, you need to log in
Most likely you are using webpackDevMiddleware or webpackDevServer. In development (dev) mode, it creates these files on the fly.
If you need a compiled bundle, build the project with NODE_ENV = production
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question