django-htmlmin icon indicating copy to clipboard operation
django-htmlmin copied to clipboard

Minifier minify pre and script tags

Open paritosh90 opened this issue 12 years ago • 4 comments

At some places I have found that minifier minify inline script tags and also pre tags. This is problem if we have single line -comments in script tags. This does not happen for every script tag but for 1 out of 8 it is happening, can't understand what is the problem. You can check for pre tags with following code, it is minifying it http://djangosnippets.org/snippets/727/

paritosh90 avatar May 31 '12 11:05 paritosh90

I did not understand very well the problem.

Could you provide an html snippet reproducing this issue?

fsouza avatar May 31 '12 13:05 fsouza

I gave the example of that snippet, have a look at that link, it does not minify pre tags.

http://djangosnippets.org/snippets/727/

Thanks

paritosh90 avatar Jun 01 '12 12:06 paritosh90

Same for me

neoascetic avatar Sep 13 '12 22:09 neoascetic

Take a look at the EXCLUDE_TAGS setting.

MTecknology avatar Aug 09 '13 20:08 MTecknology