forked from github/dataease
perf: maven打包脚本
This commit is contained in:
parent
72e2ae5ddb
commit
f8e7898771
@ -129,11 +129,6 @@
|
||||
<include name="**"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<move todir="src/main/resources/static/dev2-front">
|
||||
<fileset dir="src/main/resources/static">
|
||||
<exclude name="*.html"/>
|
||||
</fileset>
|
||||
</move>
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
@ -267,10 +262,27 @@
|
||||
<include>**/*.sql</include>
|
||||
<include>**/*.xlsx</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>static</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>static</include>
|
||||
</includes>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<!-- springboot打包插件 -->
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
|
@ -21,7 +21,7 @@ export function pathResolve(dir: string) {
|
||||
return resolve(root, '.', dir)
|
||||
}
|
||||
export default {
|
||||
base: '/dev2-front',
|
||||
base: './',
|
||||
plugins: [
|
||||
Vue(),
|
||||
VueJsx(),
|
||||
|
@ -27,7 +27,7 @@ public class WhitelistUtils {
|
||||
requestURI = requestURI.replaceFirst(AuthConstant.DE_API_PREFIX, "");
|
||||
}
|
||||
return WHITE_PATH.contains(requestURI)
|
||||
|| StringUtils.endsWithAny(requestURI, ".ico", "js", ".css", "svg", "png", "jpg", "js.map", ".otf")
|
||||
|| StringUtils.endsWithAny(requestURI, ".ico", "js", ".css", "svg", "png", "jpg", "js.map", ".otf", ".ttf")
|
||||
|| StringUtils.startsWithAny(requestURI, "data:image")
|
||||
|| StringUtils.startsWithAny(requestURI, "/login/platformLogin/")
|
||||
|| StringUtils.startsWithAny(requestURI, "/static-resource/")
|
||||
|
Loading…
Reference in New Issue
Block a user