Build and minify directive