Skip to content
New issue

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

Adding a js file that is not script.js #77

Open
ivanakcheurov opened this issue May 16, 2023 · 0 comments
Open

Adding a js file that is not script.js #77

ivanakcheurov opened this issue May 16, 2023 · 0 comments

Comments

@ivanakcheurov
Copy link

I have created a basic HTML/CSS/JS codeswing.
My index.html imports modelHandler.js.
But codeswing only recongnizes script.js as a JS file but ignores modelHandler.js.
How can I add modelHandler.js to the swing so that it is treated as part of the swing? (open the editor of this file when swing opens, refresh the preview on editing the file, etc.)

<script type="module">
    import { modelHandler } from "./src/modelHandler.js";
    window.modelHandler = new modelHandler();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant