change post component to use webpack