quokka icon indicating copy to clipboard operation
quokka copied to clipboard

How to use Quokka in HTML files?

Open nemanjacosovic opened this issue 6 years ago • 4 comments

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.

nemanjacosovic avatar Mar 02 '18 18:03 nemanjacosovic

Quokka only supports running JavaScript/TypeScript files at the moment. Mixed content is not something that we support at the moment.

ArtemGovorov avatar Mar 03 '18 00:03 ArtemGovorov

Till now?

addempsea avatar Oct 15 '19 01:10 addempsea

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.

smcenlly avatar Oct 15 '19 01:10 smcenlly

Thank you very much

addempsea avatar Oct 15 '19 06:10 addempsea