'How to prevent a json configuration file from minify
I wish to know if it's possible to prevent one file (a json configuration file) to be minified in React, when we run npm run build.
This file defines the server address and, as the server can change, it's value should be changed when needed by the user. The project will be installed in several machines which will receive data from diferent servers.
The file's content is:
{
"SERVER_URL": "http://xxx.xxx.xxx.xxx"
}
This can be done? At this time the config.json file is being minified.
Thanks for any help
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
