Answer the question
In order to leave comments, you need to log in
How to use the NodeJS module in Moodle?
I'm trying to include a nodejs module to develop a moodle plugin. Installed the module in the plugin folder with the npm install command . It lies in the node_modules folder . Now, to use it in my script, I need to import it (the standard import or require method is not suitable). I know that I need to use AMD, jQuery for example:
define(['jquery'], function($) {
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question