forked from github/dataease
feat: 前后端一起打包
This commit is contained in:
parent
2c95a3c600
commit
bab168f83d
@ -30,12 +30,19 @@ public class ShiroServiceImpl implements ShiroService {
|
|||||||
filterChainDefinitionMap.put("/v3/**","anon");
|
filterChainDefinitionMap.put("/v3/**","anon");
|
||||||
filterChainDefinitionMap.put("/static/**", "anon");
|
filterChainDefinitionMap.put("/static/**", "anon");
|
||||||
|
|
||||||
|
filterChainDefinitionMap.put("/css/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/js/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/img/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/fonts/**", "anon");
|
||||||
|
filterChainDefinitionMap.put("/favicon.ico", "anon");
|
||||||
|
filterChainDefinitionMap.put("/", "anon");
|
||||||
|
filterChainDefinitionMap.put("/index.html", "anon");
|
||||||
|
|
||||||
|
|
||||||
// filterChainDefinitionMap.put("/401", "anon");
|
// filterChainDefinitionMap.put("/401", "anon");
|
||||||
// filterChainDefinitionMap.put("/404", "anon");
|
// filterChainDefinitionMap.put("/404", "anon");
|
||||||
// 登陆
|
// 登陆
|
||||||
// filterChainDefinitionMap.put("/api/auth/logout", "anon");
|
// filterChainDefinitionMap.put("/api/auth/logout", "anon");
|
||||||
filterChainDefinitionMap.put("/api/auth/test", "anon");
|
|
||||||
filterChainDefinitionMap.put("/api/auth/login", "anon");
|
filterChainDefinitionMap.put("/api/auth/login", "anon");
|
||||||
// 退出
|
// 退出
|
||||||
|
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = 'http://localhost:8081/'
|
||||||
|
|
||||||
|
@ -26,40 +26,35 @@
|
|||||||
<version>${frontend-maven-plugin.version}</version>
|
<version>${frontend-maven-plugin.version}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<!-- optional: you don't really need execution ids, but it looks nice in your build log. -->
|
<id>install node and npm</id>
|
||||||
<id>install node and yarn</id>
|
|
||||||
<goals>
|
<goals>
|
||||||
<goal>install-node-and-yarn</goal>
|
<goal>install-node-and-npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<!-- optional: default phase is "generate-resources" -->
|
|
||||||
<phase>generate-resources</phase>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<nodeVersion>v12.14.1</nodeVersion>
|
<!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions -->
|
||||||
<yarnVersion>v1.21.1</yarnVersion>
|
<nodeVersion>v8.11.1</nodeVersion>
|
||||||
|
<npmVersion>5.6.0</npmVersion>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<!-- Install all project dependencies -->
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>yarn install</id>
|
<id>npm install</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>yarn</goal>
|
<goal>npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<!-- Optional configuration which provides for running any npm command -->
|
||||||
<configuration>
|
<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>install</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<!-- Build and minify static files -->
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>yarn build</id>
|
<id>npm run build</id>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>yarn</goal>
|
<goal>npm</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<arguments> build</arguments>
|
<arguments>run build</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
Loading…
Reference in New Issue
Block a user