reshape / minify

a reshape plugin to minify html output
Other
5 stars 3 forks source link

Dont minify inside of <pre> and <code> blocks #37

Closed onionhammer closed 6 years ago

onionhammer commented 6 years ago

Title is self explanatory; currently pre and code block whitespace is stripped, but these are white-space significant HTML blocks by design

jescalan commented 6 years ago

This would be a perfect first contribution to the project. Add it to the test suite and make it happen! This is where the whitespace collapse logic is:

https://github.com/reshape/minify/blob/master/lib/modules/collapseWhitespace.js

jescalan commented 6 years ago

Nice work with the fix! You are truly a champion.