K
K
keslo2016-04-21 17:02:51
React
keslo, 2016-04-21 17:02:51

Where is the build file saved?

Good afternoon.
I created a template for React + Redux using the example of one of the tutorials - https://github.com/keslo/React-Redux-environment
Downloading.
I install packages via npm install
I launch the project via npm start
Everything works.
But!
The assembly file does not appear in the project folder. Although the assembly is present at the address after running localhost:3000/static/bundle.js . But there is no static directory and no file in the project folder.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-04-21
@keslo

You are doing everything right. It's just that you're using webpack in dev-server mode when you run npm start, so the file is physically "as if it doesn't exist".
To get the file physically, you need to run webpack, but with this config, this may not happen.
By the way, to understand what npm start does - look in package.json, there is an item: scripts
From there you can see that node server.js is being executed, that is, in this case npm start === node server.js (you can check by running from the node server.js console)
And already server.js creates a server and uses the capabilities of webpack-dev-server
More details are described here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question