mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-09-14 16:13:57 +00:00
Added external css and js dependencies to module loader
This commit is contained in:
13
modules/test-module/include.php
Normal file
13
modules/test-module/include.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
//Local files starting without http or https will be loaded from the root of the module folder. If you have a file called test.js in your module just add test.js if you have the same file but in a folder called js inside your module folder add js/test.js. Same is valid for css files. Remote files will be loaded normally from the remote host, no need to specify anything.
|
||||
return array(
|
||||
'js_files' => array(
|
||||
//"http://spiegel.local:1234/socket.io/socket.io.js",
|
||||
//"js/somefile.js"
|
||||
),
|
||||
'css_files' => array(
|
||||
//"css/randomfile.css",
|
||||
//"https://example.com/test.css"
|
||||
)
|
||||
);
|
||||
?>
|
Reference in New Issue
Block a user