@downpw by source code I mean the plugins code in GitHub. The css is somewhere there.
https://github.com/psychobunny/nodebb-plugin-night-mode/blob/master/static/style.less
DataTables on custom plugin page
Solved
Technical Support
-
@jjsagan no, look at some other plugin.json files. There's a modules object in addition to a scripts array. It works fine with anonymously defined scripts.
-
@jjsagan you don't have to deal with .amd if you use
modules
-
@jjsagan it's literally the whole purpose of that field in plugin.json, but you have to use it like this:
require(['datatables'], function (datatables) { ... });
-
This thread might be of help as well: https://community.nodebb.org/topic/11731/how-to-include-the-images-that-are-referred-from-inside-a-third-party-css/14