Parse templates to html loader for webpack