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

How can I run noVNC without frontend / webpack server #1856

Open
vkWeb opened this issue May 8, 2024 · 1 comment
Open

How can I run noVNC without frontend / webpack server #1856

vkWeb opened this issue May 8, 2024 · 1 comment
Labels

Comments

@vkWeb
Copy link

vkWeb commented May 8, 2024

I am building my frontend entirely on Django templates (pure HTML, CSS, JS). I want to use noVNC. I am unwilling to bring in webpack just to use noVNC. Here's how I converted noVNC to be used via browser's script tag --

  1. Did npm install to get the lib.
  2. Then did browserify rfb.js -o bundle.js .
  3. Included bundle.js in script tag via <script src="{% static 'bundle.js' %}"></script>.
  4. Now, I am unable to use RFB on my other script tags. Is there any other object that I should use?

I can see a lot of potential people wanting to do what I am trying to achieve. There must be a way out, let's figure it out together. Thanks for your work on noVNC guys!

@CendioOssman
Copy link
Member

noVNC does not need to be converted to be used in a browser as it is natively written for that. So my first suggestion would be to use the normal noVNC code from here, rather than the CommonJS version from npm.

That said, what you are doing should work. What error are you getting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants