This series of articles was written to give beginners a quick introduction to front-end technology. This article focuses on packaging and deployment.
-
1. Build Demo
-
2. Program debugging
-
3. Package and deploy
React project package and deployment
1. For the React application, in the project path, execute the following command to package
npm run build
Copy the code
2. After the command is executed successfully, the terminal displays the following information:
3. At the same time, a build folder is generated, and the packaged code is compiled into the Build directory
Install the build file on the root server, so that it can be accessed through the url of the domain name assigned by the server.