antiboredom / p5.vscode

A VS Code extension to generate new p5.js project files.
Other
52 stars 15 forks source link

Go Live does not work with source files not named "sketch.js" #66

Closed dtcitron closed 4 months ago

dtcitron commented 4 months ago

If I rename my file to something else ("test.js") the Go Live function is unable to render it in browser.

Relatedly, if there are multiple .js files the only one that renders through Go Live is the one named sketch.js.

Is there a way to switch between source files?

antiboredom commented 4 months ago

Hi! If you change sketch.js you’ll also need to edit the index.html file to point to the new name of your JavaScript file…

dtcitron commented 4 months ago

I'll try that - thanks for the quick response!