-
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I'd like to embed a mint component inside an existing webpage, but right now Mint is replacing the whole <body>
.
I'd like to do something like this:
mint build --output main.js
And then use it like this in my HTML:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Main</title>
<link rel="stylesheet" href="whatever-you-want.css">
<script src="main.js"></script>
</head>
<body>
<div id="mint"></div>
<script>
Mint.Program.init({
node: document.getElementById('mint')
});
</script>
</body>
</html>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request