We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedding in custom HTML document
Since upgrade to Parcel 2 in #56, JS doesn't expose functions for init, but directly inits Elm app with hardcoded values.
This doesn't work anymore:
<script src="salary-calculator.js" charset="utf-8"></script> <div id="salary-calculator-container"></div> <script charset="utf-8"> SalaryCalculator.init( document.getElementById("salary-calculator-container") ) </script>
This works:
<div id="app-container"></div> <script defer src="salary-calculator.js"></script>
but there's no way to use a custom id for id="app-container".
id="app-container"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Since upgrade to Parcel 2 in #56, JS doesn't expose functions for init, but directly inits Elm app with hardcoded values.
This doesn't work anymore:
This works:
but there's no way to use a custom id for
id="app-container"
.The text was updated successfully, but these errors were encountered: