Modify Webpack Configs

Encapsulate different parts of the webpack configuration.