build: 前端打包使用 pnpm

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

2
frontend/.gitignore vendored
View File

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

View File

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