preview-docs reload is not working anymore
Describe the bug Reloading browser is not working when openapi-cli is installed globally.
To Reproduce Steps to reproduce the behavior:
- Install openapi-cli globally
- Open any specs files using preview-docs command
openapi preview-docs openapi.yaml - Open the browser
- Change anything in the spec file
- Browser does not reload
Expected behavior The browser should reload content when the file is edited.
Logs
Browser cannot load simplewebsocket.min.js and hot.js

openapi-cli Version(s)
1.0.0-beta.80
Node.js Version(s)
16.13.2
Additional context
After checking out, it seems that this recently introduced change is preventing the loading of the hot.js and simplewebsocket.min.js
Commenting out this specific code in the /lib folder resolves the issue.
I'm seeing the same issue

I'm seeing the same issue as well.
Could only reproduce this with a published version of openapi-cli and not in local development environment.
I have the same issue.