soixantecircuits / nd

vue-cli neodymium template
https://soixantecircuits.github.io/nd/
4 stars 2 forks source link

Static server is not serving files correctly in electron #24

Open negabakuru opened 7 years ago

negabakuru commented 7 years ago

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 commented 7 years ago

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
}