'How to configure webpack for production as it throughing cannot get url error
Cannot get url in production while refreshing, i don't have webpack.config.js file, how do I do webpack configuration for production
package.json
"start-server": "node server/index.js",
"start": "react-scripts start",
"build": "react-scripts build && npm run copyindex && cpx .env build",
"test": "react-scripts test",
index.html
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
webpack.config.js
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
