November 2019
Beginner
436 pages
8h 52m
English
Unlike the Angular CLI, you don't need extra scripts to perform a production build with the Create React App tool. You should already have the build command in your package.json file for that:
{ "scripts": { "serve": "react-scripts start", "start": "electron .", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },}
Whenever you need to perform a production build, use the following command in the Terminal:
npm run build
In this case, the output should look as follows:
Creating an optimized production build...Compiled successfully.File sizes after gzip: 36.83 KB build/static/js/2.6efc73d3.chunk.js 763 B build/static/js/runtime~main.d653cc00.js 725 B (+15 B) build/static/js/main.dff8d9a2.chunk.js ...
Read now
Unlock full access