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 server is not serving files correctly in electron #24

Open
negabakuru opened this issue Apr 21, 2017 · 1 comment
Open

Static server is not serving files correctly in electron #24

negabakuru opened this issue Apr 21, 2017 · 1 comment

Comments

@negabakuru
Copy link

When running an app in electron, files normally served by the static server ( like http://127.0.0.1:9293/static/img/arrow-right.png ) are not accessible.
It returns a 404 error
GET http://127.0.0.1:9293/static/img/arrow-right.png 404 (Not Found)

@hugohil
Copy link
Member

hugohil commented Apr 25, 2017

Could you try to modify the webpack.dev.conf.js file and set the output property like the following please ?

output: {
  publicPath: config.build.assetsPublicPath
}

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

2 participants