where is create-react-app webpack config and files?

后端 未结 10 1539
长发绾君心
长发绾君心 2020-11-28 18:33

I create a ReactJS project with the create-react-app package and that worked well, but I cannot find webpack files and configurations.

How does react-cr

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 18:43

    If you want to find webpack files and configurations go to your package.json file and look for scripts

    img

    You will find that scripts object is using a library react-scripts

    Now go to node_modules and look for react-scripts folder react-script-in-node-modules

    This react-scripts/scripts and react-scripts/config folder contains all the webpack configurations.

提交回复
热议问题