In the static folder, I have config.js
module.exports = {
config: {
urls: {
auth: localhost
}
}
}
I run npm run build
and send the output (dist folder) to the client for deployment in a production environment. I want the client to be able to edit the auth value.
config is currently configured as an external file in webpack:
const config = require(path.join(paths.STATIC, 'config.js'))
externals: [{
appsetting: JSON.stringify(config)
}]
How do I make config.js recognize changes after building webpack?
source
share