Created by: Timer
This should make the configuration easier to update (reduces duplication).
Follows webpack 4 convention of configuration as a function, accepting env
as first argument. Will work with CLI invokes.
Let's see if this passes tests ...