isPermalink(undefined): check if url already have extension

also add `uglify` in `design` task