blob: 1b7bbc613c3c9ee5da9793d85c9360d3d64a3c3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { isStyleJsExists } from './utilities/helpers';
/**
* Add style.js script for development purposes.
*/
function loadWebpackStyles() {
if (isStyleJsExists()) {
const head = document.querySelector('head');
const script = document.createElement('script');
script.src = 'assets/js/style.js';
head.appendChild(script);
}
}
/**
* Initialize the website with the projects list.
*/
function init() {
loadWebpackStyles();
}
init();
|