C
C
ch-aqwer2017-01-21 14:38:47
React
ch-aqwer, 2017-01-21 14:38:47

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

1 answer(s)
N
Nikita Gushchin, 2017-01-21
@ch-aqwer

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 question

Ask a Question

731 491 924 answers to any question