Search code examples
polymerminifyuglifyjs

Uglify/minify Polymer web components using gulp


I am trying to minify my web components using gulp's uglify plugin but it fails because it does not recognize the custom html tags.

Are there any gulp plugins that can minify html containing custom tags?


Solution

  • To do this is quite the challenge. You use the crisper plugin to factor out the script into it's own file. You can then minify the script source. Afterwards use vulcanize to inline your script back into the HTML.