styleguidist/mini-html-webpack-plugin

Script code gets removed

aryzing opened this issue · 3 comments

I'm using this script in my SPA that's being served through github pages. The index file is being processed by mini-html-webpack-plugin, but it is removing the contents of the script tag.

The emitted file contains my script, but with no code:

<script type="text/javascript"></script>

As a work around, I'm now loading the script externally and it works just fine.

Not sure what the issue is. Could it be that its "too long" or perhaps that the plugin can't parse it correctly?

Can you provide your webpack configuration? Ideally there would be something to run so this can be studied better.

@aryzing Can you check against the current version? If you can reproduce the issue, can you set up a small example to run and examine? Thanks!

Please re-open if this is still relevant. We would need a standalone example to study this one further.