I'm trying to add a variable to my app.js at the time of build. For example:
//app.js
var myvar = {{set_from_cli}};
then I want to run something like webpack -p --myvar='abc' which would result in this:
//bundle.js
var myvar = 'abc';
I've searched and maybe I'm just not looking in the right places or using the right terms, but can't figure out how to do this.