Skip to content

Small vue-cli-3 fix allowing the backend pom file to copy the frontend static resources on project compilation #30

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

Merged
merged 1 commit into from
Sep 25, 2018
Merged

Small vue-cli-3 fix allowing the backend pom file to copy the frontend static resources on project compilation #30

merged 1 commit into from
Sep 25, 2018

Conversation

angelomelonas
Copy link

I noticed that after compiling (mvn clean install), running the project (--projects backend spring-boot:run) and visiting http://localhost:8088 that a blank page was shown (even though running the frontend in a dev environment it works perfectly). It turns out that the backend pom file, which is instructed to copy assets from the frontend/target/dist and frontend/target/dist/static folders to the backend resources folder, only copies the index.html file and not the static assets.
After the recent vue-cli-3 upgrade the static assets are no longer placed in the frontend/target/dist/static folder, thus adding assetsDir: 'static' to the vue.config.js file ensures the backend can copy the static assets upon compilation.

…d static resources on project compilation.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 97

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.103%

Totals Coverage Status
Change from base Build 96: 0.0%
Covered Lines: 27
Relevant Lines: 29

💛 - Coveralls

@jonashackt
Copy link
Owner

Hey @angelomelonas , you´re absolutely right 👍 This line was left and also meant, that the Heroku deployment was broken. Thank you very much.

@jonashackt jonashackt merged commit 4ca5346 into jonashackt:master Sep 25, 2018
etherdog-eth added a commit to etherdog-eth/spring-boot-vuejs that referenced this pull request May 31, 2021
peterpan0225 added a commit to peterpan0225/spring-boot-vuejs that referenced this pull request Mar 3, 2023
midas3110 added a commit to midas3110/spring-vue that referenced this pull request Mar 16, 2025
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

Successfully merging this pull request may close these issues.

3 participants