ACP: JavaScript
-
Awards.init = function() { require(['my/public/path/myjs']); };
-
@yariplus said:
Awards.init = function() { require(['my/public/path/myjs']); };
That isn't any different from including the script manually, though.
-
Oh, i see the problem. Dang. There has to be another way then just putting everything in nodebb.min.js though, right?
-
Also I have found another problem - It's a development.
Minification is part of nodebb startup. So after every single change in client JS, you should restart NodeBB, It takes time...
Maybe NodeBB could borrow ideas from Wordpress and handle JS includes for particular pages?
I'm OK with single minified script for production. -
@Nicolas there is a grunt thing that only does what is necessary. You should try it out.
-
grunt --verbose
? It will restart nodebb, nothing very special... -
Copyright © 2024 NodeBB | Contributors