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>
|
||||
<directory>maven-resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>dist</directory>
|
||||
<targetPath>theme/keycloak.v3/account/resources</targetPath>
|
||||
<excludes>
|
||||
<exclude>index.html</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
|
|
|
@ -31,6 +31,7 @@ export default defineConfig(({ mode }) => {
|
|||
port: 5173,
|
||||
},
|
||||
build: {
|
||||
outDir: "target/classes/theme/keycloak.v3/account/resources",
|
||||
...lib,
|
||||
sourcemap: true,
|
||||
target: "esnext",
|
||||
|
|
|
@ -56,13 +56,6 @@
|
|||
<resource>
|
||||
<directory>maven-resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>dist</directory>
|
||||
<targetPath>theme/keycloak.v2/admin/resources</targetPath>
|
||||
<excludes>
|
||||
<exclude>index.html</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
|
|
|
@ -10,6 +10,7 @@ export default defineConfig({
|
|||
port: 5174,
|
||||
},
|
||||
build: {
|
||||
outDir: "target/classes/theme/keycloak.v2/admin/resources",
|
||||
sourcemap: true,
|
||||
target: "esnext",
|
||||
modulePreload: false,
|
||||
|
|
|
@ -26,7 +26,5 @@
|
|||
<properties>
|
||||
<!-- 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>
|
||||
<!-- 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>
|
||||
</project>
|
||||
|
|
Loading…
Reference in a new issue