p5-cli icon indicating copy to clipboard operation
p5-cli copied to clipboard

Allow server to include add-ons when running in sketch mode

Open kadamwhite opened this issue 10 years ago • 1 comments

Is there any reason not to always load all core P5 add-ons? cc @brysonian @lmccart -- I feel that it's easiest if e.g. we just auto-included p5.Sound, rather than toggling them on with a flag e.g. --addons, but if you're aware of any reason not to include core add-ons please let me know. I may be missing something.

kadamwhite avatar May 30 '15 03:05 kadamwhite

I can't think of a reason not to load them all. The only thing is that maybe a user would start here and then incorporate a sketch into another webpage without including all the add ons, and then be confused about why the code isn't working. But i don't think that case would be helped by not including them all by default. A better solution would be to encourage people to add require('p5.sound) to their sketches to use the sound lib, simply as a way to more clearly declare the dependency.

brysonian avatar May 30 '15 16:05 brysonian