minify and distribute