jonashackt/spring-boot-vuejs

publicPath in vue.config.js

jevgeniP opened this issue · 2 comments

If I need some specific publicPath in vue.config.js, what changes I need to perform in back end path to assume when I run jar file, app accessible on url localhost/my_path?

The spring context-path can be set like so, java -jar yourapp.jar --server.servlet.context-path=/my_path

You can also override the --server-port=8308 for example, and anything else in your application properties.

Where do you set the publicPath though for npm? When I run the app with a diff context-path /my_path, the npm generated bundle still believes its served under / and fails to load app.js

Closing due to no activity.