quokka
quokka copied to clipboard
How to use Quokka in HTML files?
Is there a way to use Quokka in HTML files for debugging inline scripts or just the scripts inside HTML page? It would prove very useful.
Quokka only supports running JavaScript/TypeScript files at the moment. Mixed content is not something that we support at the moment.
Till now?
We do not support running Quokka on HTML files but you may run mixed content (JavaScript + HTML) using our jsdom-quokka-plugin.
The plugin emulates a browser-like environment using jsdom
. You will need to separate your HTML and JavaScript into separate files. The README for the plugin describes how to set it up and includes two examples for how to use it.
Thank you very much