Webpack Ionic App to Umd format

how to custom webpack ionic app into umd format so that we can system.import in another ionic app?