Scripts disappear
jcayzac opened this issue · 2 comments
jcayzac commented
<script>…anything…</script>
is transformed into <script></script>
(empty script).
wooorm commented
Please see this contributing doc on how to write better issues, I’m not sure what you’re saying.
jcayzac commented
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.