First, what is the purpose of create-react-app
? In the documentation:
Create React apps with no build Configuration.
Before the existence of create-react-app
, you should implement your own build "system". It could be webpack, Gulp, or even Grunt.
This meant that you built your entire project, cute, with JSX, ES6, Sass, and you were required to use one of these tools and define what they would do. Sweat, minify, line and all you want. It was a very big job, involving several scripts and a lot of google search, very complicated entry barrier for those who wanted to start programming with React.
The create-react-app
came to facilitate all this part of configuration and build, and let you focus only on your project. Behind the scenes he uses the webpack, with scripts until quite large, to make all this boring part that before you had to do on hand.
I recommend you create a new project, with the create-react-app
and execute the command npm run eject
. What this command does is to "unhook" everything it hides from configuration. Then you will see the webpack config file, see the scripts and everything else. Just be careful that once the project is "ejected", there is no going back.