Hey Matt -
Typically you would complete these steps as part of an automated build process (e.g. grunt, gulp, etc.). There might be a ST plugin available that will take the current window and minify it but if you are using grunt, check out grunt-contrib-uglify and grunt-minjson for minification. I’m sure gulp has similar counterparts.