[Vuejs]-Vuejs + p5js โ€“ importing library in vue-cli

0๐Ÿ‘

if they are both from javascript then you can use them both in different files by changing the script language.

to learn more about vue:
https://v2.vuejs.org/v2/guide/

to learn more about p5.js:
https://p5js.org/reference/

to learn more about changing script with the script tag:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

0๐Ÿ‘

You can either add the CDN link in the index.html or you could use the yarn package (it seems to be up to date).

yarn add p5

Getting Started With Yarn

Leave a comment