1. 去掉zlt-web的父级依赖,为一个独立模块;因为目前这个依赖了“frontend-maven-plugin”打包可能会有问题,导致整个项目都打包不了,所以前端按需独立打包。
2. 增加build.bat和start.bat快捷方式
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>react-web</artifactId>
|
||||
<description>React前端</description>
|
||||
<description>React开发的前端(Ant Design)</description>
|
||||
|
||||
<properties>
|
||||
<node.version>v16.13.2</node.version>
|
||||
@@ -84,6 +84,7 @@
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>${spring-boot-dependencies.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
npm run build
|
||||
@@ -21,7 +21,7 @@
|
||||
"playwright": "playwright install && playwright test",
|
||||
"prettier": "prettier -c --write \"src/**/*\"",
|
||||
"serve": "umi-serve",
|
||||
"start": "cross-env UMI_ENV=dev umi dev",
|
||||
"start": "cross-env UMI_ENV=dev umi dev --port=8066",
|
||||
"start:dev": "cross-env REACT_APP_ENV=dev MOCK=none UMI_ENV=dev umi dev",
|
||||
"start:no-mock": "cross-env MOCK=none UMI_ENV=dev umi dev",
|
||||
"start:no-ui": "cross-env UMI_UI=none UMI_ENV=dev umi dev",
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
npm start
|
||||
Reference in New Issue
Block a user