Skip to content

Commit ec28411

Browse files
committed
update ramp lib using npm package
1 parent 5eb9666 commit ec28411

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="stylesheet" href="<%= BASE_URL %>draw.css" />
1515
<script src="<%= BASE_URL %>draw.js"></script>
1616

17-
<link rel="stylesheet" href="<%= BASE_URL %>styles/ramp.css" />
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ramp-pcar/dist/esDynamic/ramp.css" />
1818

1919
<script
2020
type="text/javascript"
@@ -41,9 +41,9 @@
4141
type="text/javascript"
4242
src="<%= BASE_URL %>js/rv-main.js"
4343
></script>
44-
<script
45-
type="text/javascript"
46-
src="<%= BASE_URL %>js/ramp.js"
47-
></script>
44+
<script type="module">
45+
import * as R4 from 'https://cdn.jsdelivr.net/npm/ramp-pcar/dist/esDynamic/ramp.js';
46+
window.RAMP4 = R4;
47+
</script>
4848
</body>
4949
</html>

0 commit comments

Comments
 (0)