https://eastgyu.github.io/spring/Spring-Vue/
pom.xml에 다음추가
-----------------------------------------------------------------------------------------------------------------------------------
<build> <plugins> ... <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <!-- Use the latest released version: https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ --> <version>1.8.0</version> <configuration> <!-- pom.xml 이 있는 path 경로 --> <installDirectory>frontend</installDirectory> <workingDirectory>frontend</workingDirectory> </configuration> <!-- NB! Set <version> to the latest released version of frontend-maven-plugin, like in README.md --> <executions> <execution> <id>install node and npm</id> <goals> <goal>install-node-and-npm</goal> </goals> <configuration> <!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> <nodeVersion>v8.11.1</nodeVersion> <npmVersion>5.6.0</npmVersion> </configuration> </execution> <execution> <id>npm install</id> <goals> <goal>npm</goal> </goals> <!-- Optional configuration which provides for running any npm command --> <configuration> <arguments>install</arguments> </configuration> </execution> <execution> <id>npm run build</id> <goals> <goal>npm</goal> </goals> <configuration> <arguments>run build</arguments> </configuration> </execution> </executions> </plugin> </plugins> </build>
-----------------------------------------------------------------------------------------------------------------------------------
'Vue.js' 카테고리의 다른 글
라우팅 기본 (0) | 2021.04.25 |
---|---|
Created / Mount (0) | 2021.04.06 |
VS Code html 자동 태그 안됨 개선 (0) | 2021.04.03 |
모듈 내보내기 ,가져오기 두가지방법 CommonJS / ES6 (0) | 2020.07.02 |
에러!! <strong>We're sorry but frontend doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> (0) | 2020.07.01 |