feature(minify) add middleware