Refactor webpack server config a bit.