aitoroses / vulcanize-loader

Polymers vulcanize tool loader for webpack
24 stars 8 forks source link

Output HTML not minified #12

Open 0xR opened 7 years ago

0xR commented 7 years ago

The resulting HTML contains a lot of HTML comments as well as unminified CSS. I can't get it to run through the html-loader to fix it. Possibly the solution is to run the resulting HTML through https://github.com/PolymerLabs/polyclean as well as vulcanize. Another interesting solution would be use the new https://github.com/Polymer/polymer-build since it contains all the polymer build tools: vulcanize, crisper and polyclean.

A pure webpack solution using html-loader would also be an interesting idea.

jaichandra commented 7 years ago

Looks like crisper is already used to strip off js. I think the only one missing is polyclean. Is there a workaround for this?