- Notifications
You must be signed in to change notification settings - Fork16
Open
Labels
Description
The HTML minifier is not aligned with React rendering because it does things such as :
- Stripping whitespaces inside of elements, this is very good but if you don't manually strip the string yourself React will complain since it will render it with the whitespaces on the client.
- Deleting the ; at the end on inline style-tags. Unfortunately, this is React's default behavior to put a ; at the end of inline style tags even if it's not necessary so it causes conflics.
I don't know about other differences between the react rendering and the html-minifier, but we should search for them and make sure it doesn't cause problems in the future.
I guess, the html-minifier should simply not do anything except removing whitespaces between tags.