update build process to webpack.