Jump to content

Quokka Live Javascript Feedback


Voxin
 Share

Recommended Posts

  • 8 months later...

I was able to get this working but it required some changes to the top level .quokka settings.

Additions to .quokka/config.json:

{

   "plugins":["jsdom-quokka-plugin"],

   "jsdom": {

       "html": "<canvas id='game' width='256' height='240'></canvas>"

   }

}

 

and you have to install the following modules inside the .quokka directory so that quokka will have access to the plugins

npm i canvas jsdom-quokka-plugin

or if you are using yarn:

yarn add canvas jsdom-quokka-plugin

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...