build: 前端打包使用 pnpm

This commit is contained in:
CaptainB 2022-04-08 14:30:16 +08:00 committed by 刘瑞斌
parent d2ac8ae5c6
commit b9043902ea
2 changed files with 4 additions and 4 deletions

2
frontend/.gitignore vendored
View File

@ -26,4 +26,4 @@ yarn-error.log*
.classpath .classpath
yarn.lock yarn.lock
package-lock.json package-lock.json
pnpm-lock.yaml

View File

@ -16,7 +16,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<frontend-maven-plugin.version>1.9.1</frontend-maven-plugin.version> <frontend-maven-plugin.version>1.12.1</frontend-maven-plugin.version>
</properties> </properties>
<build> <build>
@ -43,14 +43,14 @@
<execution> <execution>
<id>npm install</id> <id>npm install</id>
<goals> <goals>
<goal>npm</goal> <goal>npx</goal>
</goals> </goals>
<configuration> <configuration>
<!-- optional: The default argument is actually <!-- optional: The default argument is actually
"install", so unless you need to run some other yarn command, "install", so unless you need to run some other yarn command,
you can remove this whole <configuration> section. you can remove this whole <configuration> section.
--> -->
<arguments>install</arguments> <arguments>pnpm install</arguments>
</configuration> </configuration>
</execution> </execution>
<!-- Build and minify static files --> <!-- Build and minify static files -->