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... -
@pichalite try this
Dropbox error - 'echo 100000 | sudo tee / proc/sys/fs/inotify/max_user_watches'
Dropbox gives me an error that mentions echo tee 100000 but then it disappears. How to fix or remove msg?
Ask Ubuntu (askubuntu.com)