Skip to content

Commit bbd77b0

Browse files
committed
testing three import in index.html
1 parent 9515ad8 commit bbd77b0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,12 @@
305305
padding: 0 30px;
306306
}
307307
</style>
308-
<script type="module" src="three.js"></script>
308+
<script type="module">
309+
import * as THREE from './three.js';
310+
</script>
309311
<script type="module" src="OrbitControls.js"></script>
310312
<script type="module" src="Reflector.js"></script>
311-
<script type="module" src="bmfont.js"></script>
313+
<script src="bmfont.js"></script>
312314
</head>
313315
<body>
314316
<div class=body>

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ https.createServer({
1515
.listen(443)
1616

1717
console.log(`https://dev.exokit.org`);
18+
19+
app.listen(3100, () => console.log(`localhost:3100`));

0 commit comments

Comments
 (0)