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

“__static” not work as expected in production #114

Closed
zeng450026937 opened this issue Mar 23, 2018 · 2 comments
Closed

“__static” not work as expected in production #114

zeng450026937 opened this issue Mar 23, 2018 · 2 comments

Comments

@zeng450026937
Copy link

“__static” is still setted to projectDir/static in renderer process, while pointing to resourceDir/static in main process.

@ctotheameron
Copy link

ctotheameron commented Jun 5, 2018

I'm experiencing the same issue in my project.

logging __static in main process shows:
/Volumes/my volume name/my app name.app/Contents/Resources/static/

logging __static in render process shows:
/Users/me/workspace/my project dir/static

develar pushed a commit that referenced this issue Aug 28, 2018
For the renderer process and in production the __static variable should also point to process.resourcesPath and not to the configurator.projectDir, because /static files are located relative to the packaged electron app.
@christophpre
Copy link
Contributor

christophpre commented Aug 30, 2018

I think this issue can be resolved now, since the fix is already contained in version 2.3.0

@develar develar closed this as completed Aug 30, 2018
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

4 participants