blob: 58af98a01306fbe992d4cc1fda97f2c85af8dfd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// General JavaScript
require ("./js/general")();
// Page-specific JavaScript
const pageName = document.getElementsByTagName("body")[0].id;
try {
require("./js/" + pageName)();
} catch (error) {
console.log(
"Something went wrong when loading the js for this page...\n" +
"The pageName is \"" + pageName + "\".\n" +
"If it was excpected to get js for this page, please check the filename, and recompile webpack."
);
}
// Require all styles
require("./app.scss");
// Require font awesome
require("fontawesome");
|