Add importmap
This commit is contained in:
parent
b3de8cc152
commit
92a008bcaf
@ -5,6 +5,14 @@
|
||||
<title>WebArchi</title>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<!--<link rel='stylesheet' type='text/css' media='screen' href='main.css'>-->
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"three": "./vendor/three/build/three.module.js",
|
||||
"openbim-components": "./vendor/openbim-components/src/index.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script src='main.js' type="module"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
4
main.js
4
main.js
@ -1,5 +1,5 @@
|
||||
import * as THREE from './vendor/three/build/three.module.js';
|
||||
import * as OBC from './vendor/openbim-components/src/index.js';
|
||||
import * as THREE from 'three';
|
||||
import * as OBC from 'openbim-components';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const container = document.querySelector('#scene');
|
||||
|
Loading…
Reference in New Issue
Block a user