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

assets not working #4

Closed
indus opened this issue Apr 24, 2018 · 5 comments

Comments

Projects
None yet
3 participants
@indus
Copy link

commented Apr 24, 2018

I can't get a path to the logo in the assets folder of the default project.

@nklayman

This comment has been minimized.

Copy link
Owner

commented Apr 24, 2018

I think the issue is that whenever a plugin's generator is invoked (vue add my-plugin), Vue cli corrupts the logo and favicon. If you reset the logo to before you added electron-builder (or any other plugin) it should work fine. Please confirm so I can close this issue.

Thanks.

@indus

This comment has been minimized.

Copy link
Author

commented Apr 24, 2018

You are right. I'm not sure what happend but after restarting the with "npm run serve" it now works.

@indus indus closed this Apr 24, 2018

@iamazik

This comment has been minimized.

Copy link

commented Sep 11, 2018

@nklayman @indus I am able to reproduce the issue. When adding vue add router and build the package, assets are not loading open running the app. However, when going to a different route and get back to the home, assets then load fine as expected. For your convenience, I have added a gif here. It doesn't work even after invoking electron builder vue invoke electron-builder and rebuilding the app.

@nklayman

This comment has been minimized.

Copy link
Owner

commented Sep 12, 2018

@iamazik this is probably because you are using history mode, which has issues with electron. Remove the mode key from your router configuration to fix it.

@iamazik

This comment has been minimized.

Copy link

commented Sep 12, 2018

Right, that fixed it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.