0👍
Add this:
publicPath: process.env.NODE_ENV === 'production'
? '/prodPath'
: '/devPath'
and create a .env file on your directory with the declared var set to the current enivorment state:
NODE_ENV='development'
Source:stackexchange.com