Output Vite build directly into Maven target directory (#30490)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
dc109381e1
commit
2b35b4430c
5 changed files with 2 additions and 16 deletions
|
@ -56,13 +56,6 @@
|
||||||
<resource>
|
<resource>
|
||||||
<directory>maven-resources</directory>
|
<directory>maven-resources</directory>
|
||||||
</resource>
|
</resource>
|
||||||
<resource>
|
|
||||||
<directory>dist</directory>
|
|
||||||
<targetPath>theme/keycloak.v3/account/resources</targetPath>
|
|
||||||
<excludes>
|
|
||||||
<exclude>index.html</exclude>
|
|
||||||
</excludes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -31,6 +31,7 @@ export default defineConfig(({ mode }) => {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
outDir: "target/classes/theme/keycloak.v3/account/resources",
|
||||||
...lib,
|
...lib,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
|
|
|
@ -56,13 +56,6 @@
|
||||||
<resource>
|
<resource>
|
||||||
<directory>maven-resources</directory>
|
<directory>maven-resources</directory>
|
||||||
</resource>
|
</resource>
|
||||||
<resource>
|
|
||||||
<directory>dist</directory>
|
|
||||||
<targetPath>theme/keycloak.v2/admin/resources</targetPath>
|
|
||||||
<excludes>
|
|
||||||
<exclude>index.html</exclude>
|
|
||||||
</excludes>
|
|
||||||
</resource>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
@ -10,6 +10,7 @@ export default defineConfig({
|
||||||
port: 5174,
|
port: 5174,
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
|
outDir: "target/classes/theme/keycloak.v2/admin/resources",
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
target: "esnext",
|
target: "esnext",
|
||||||
modulePreload: false,
|
modulePreload: false,
|
||||||
|
|
|
@ -26,7 +26,5 @@
|
||||||
<properties>
|
<properties>
|
||||||
<!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly -->
|
<!-- The JavaScript projects use the non-standard 'src' folder for their sources, therefore, name it here explicitly -->
|
||||||
<maven.build.cache.input.1>src</maven.build.cache.input.1>
|
<maven.build.cache.input.1>src</maven.build.cache.input.1>
|
||||||
<!-- The child projects will package from the 'dist' folder, which is listed as a resource, but isn't a source folder -->
|
|
||||||
<maven.build.cache.exclude.value.1>dist</maven.build.cache.exclude.value.1>
|
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in a new issue