@ape the standard way to get nodebb modules is require.main.requireconst Posts = require.main.require('./src/posts'); Posts.getPostData(pid, callback)
Unsolved Plugin with CDN hosted script
Hi guys, what will you recommend for the plugin, that should be implemented with a widget, but should use client JS that is hosted on CDN?
Asynchronous loading of the js file (script injection)?
@julian yes. For example Google with their Chromecast, asks for using link from CDN, etc.
Yeah, I'd probably have the widget load js if the library it wants to use isn't found...
@julian What do you think about an idea to extend
.jsonconfiguration for plugins, to have something related to external scripts (
scripts.external = )?
Also will minifier use external js? So every reboot of forum will give latest version to the user.