spring-boot - Spring Boot, Vue.js and npm watch
问题描述
I have a stack containing Spring-Boot and Vue.js. By maven configuration project is separated into two modules: frontend and backend. During the mvn clean install plugin exec-maven-plugin build frontend part. On the backend side, plugin maven-resources-plugin copies frontend build into aprropriate directory. Finally, the jar with spring-boot and frontend side is created.
The problem is, that this configuration is completeally unconvinient for development process:
- I am running spring-boot application under intellij.
- I am running "watch": "vue-cli-service build --watch",
- When change on the frontend side occures, frontend build is done and ./frontend/target/dist directory is changed.
I manually copy ./frontend/target/dist into ./backend/target/META-INF/.....
Frontend changes are visible after page is reloaded.
The question is: is it possible to change target directory for frontend build process?
解决方案
推荐阅读
- php - 我想用 mysql 数据中的条件检查 html 选项
- java - Json 和数组序列化 - Java Spring Boot
- c# - 更改交叉表单元格背景颜色
- php - 用php制作的登录表单中的索引错误
- python - 两个 Conv 层之间的 Dropout 和 Batchnormalization
- python - 如何使用 http.server python3 打印换行符?
- php - Html 链接到文件夹而不是 ftp 服务器上的文件。但是这个文件夹有html?
- reactjs - React Native Elements 图标未显示在按钮上
- delphi - Delphi 例程模拟打字
- c++ - 为什么我无法在 VS 中从 const char[5] 转换为 char*?