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

Can you make this to load local html file ? #5

Open
khoint0210 opened this issue May 7, 2020 · 3 comments
Open

Can you make this to load local html file ? #5

khoint0210 opened this issue May 7, 2020 · 3 comments

Comments

@khoint0210
Copy link

Love nodegui but I have wait for this plugin for so long to be launch could you make this plugin able to load local HTML file, please

@tborowy
Copy link

tborowy commented Jun 2, 2020

Can you try use file:// protocol?

@khoint0210
Copy link
Author

khoint0210 commented Jun 2, 2020

Well but the file must be from the root which is hard when I need to publish the app

@robin-rpr
Copy link

@khoint0210 You can simply do

/* ... */
webview.load(`file://${path.resolve('dist/index.html')}`)

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

3 participants