F
F
freelion932020-02-14 12:16:11
Moodle
freelion93, 2020-02-14 12:16:11

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

1 answer(s)
K
katorSi, 2020-09-14
@katorSi

Good afternoon. Unable to find the answer to the question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question