Chartjs-HTML minification via Gulp.js is breaking my Chart.js chart in my Angular app

4👍

Looks like gulp-minify-html (or rather the module it uses minimize) removes attributes without values by default.

You can easily fix that: .pipe(minifyHTML()) => .pipe(minifyHTML({empty: true}))

Leave a comment