Browse Source

Maven 打包时 frontend 编译流程

TDesign-Vue-Next-1.20.6
wanghanlin 3 weeks ago
parent
commit
fff64aaeec
  1. 15
      pom.xml

15
pom.xml

@ -356,7 +356,18 @@
<skip>${skip.frontend}</skip>
</configuration>
<executions>
<!-- npm install -->
<!-- 第一步:安装 Node.js(首次自动下载,后续复用缓存) -->
<execution>
<id>install-frontend-node</id>
<phase>prepare-package</phase>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v20.18.0</nodeVersion>
</configuration>
</execution>
<!-- 第二步:npm install 安装依赖 -->
<execution>
<id>install-frontend-npm</id>
<phase>prepare-package</phase>
@ -367,7 +378,7 @@
<arguments>install</arguments>
</configuration>
</execution>
<!-- npm run build(Vite 构建) -->
<!-- 第三步:npm run build(Vite 构建) -->
<execution>
<id>build-frontend-vite</id>
<phase>prepare-package</phase>

Loading…
Cancel
Save