How to package a third-party library separately into a file?

Now I want to pack the ionic angular jQuery… into a separate file inside, write their own code into a document inside, how should I do? Is there any solution or instance?

Sorry, what exactly do you want to do?