I have some config files which basically stores some data. However, I am using different data for development and deployment.
I don't want to manually change the file whenever I try to deploy it. Nor do I want to change the import statement before deployment.
for example. I have some code
import './config/data.js'
I don't want to modify this. I only want the content of data.js
to change between development and deployment.
How can I setup webpack to achieve this?