minify output and stripped relative path with onlyPath from templates id