refactor out import & minify tasks