rehypejs/rehype-minify

Scripts disappear

jcayzac opened this issue · 2 comments

<script>…anything…</script> is transformed into <script></script> (empty script).

Please see this contributing doc on how to write better issues, I’m not sure what you’re saying.

Sorry for the lack of context!

Using Rehype with just the minify preset, any inline script in the source document gets turned into an empty script tag after the minification.

Since it was blocking me, I stopped using rehype in favor of uglifyjs so I can’t reproduce it now.