refactor(minify) makeDir