mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
js bundle
This commit is contained in:
parent
305e8ec8ed
commit
d0c1045550
7 changed files with 223 additions and 36 deletions
3
script/test.js
Normal file
3
script/test.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function test() {
|
||||
console.log("import test");
|
||||
}
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
function test() {
|
||||
console.log("test");
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", test);
|
||||
import {test} from './test';
|
||||
|
||||
document.addEventListener("DOMContentLoaded", test);
|
||||
if (document.readyState === "complete") {
|
||||
test();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue