There are some options you may choose from:
Very Basic: Use an online minifier like https://cssminifier.com/. You can enter the css content in a text area and minify it or you could it's API and
Extend your bulid pipeline to use a plugin that handles css: gulp-cssmin or gulp-clean-css are examples for gulp.
Int this answer you see an easy usage example on how to compile less to css and then minify it. Using less is of course optional.
Some editors like atom support minifying a css file without any plugins. Other editors like Visual Studio Code may need an extension to support that.
Regarding that you want to minify an external file:
I'd try to minify it when building your project and not on client side since the client would likely have to download your script before minifying, making the minifying useless.
I recommend just downloading it, maybe with bower, and then minifying it.