Make it so it's not required to manually call the copy-keycloak-resources-to-public script even in webpack projects
This commit is contained in:
parent
f71ab4635f
commit
73031e74ec
@ -245,7 +245,7 @@ program
|
||||
.command({
|
||||
name: "copy-keycloak-resources-to-public",
|
||||
description:
|
||||
"(Webpack/Create-React-App only) Copy Keycloak default theme resources to the public directory."
|
||||
"(Internal) Copy Keycloak default theme resources to the public directory."
|
||||
})
|
||||
.task({
|
||||
skip,
|
||||
|
@ -9,6 +9,16 @@ import { getIsPrettierAvailable, runPrettier } from "./tools/runPrettier";
|
||||
export async function command(params: { buildContext: BuildContext }) {
|
||||
const { buildContext } = params;
|
||||
|
||||
run_copy_assets_to_public: {
|
||||
if (buildContext.bundler !== "webpack") {
|
||||
break run_copy_assets_to_public;
|
||||
}
|
||||
|
||||
const { command } = await import("./copy-keycloak-resources-to-public");
|
||||
|
||||
await command({ buildContext });
|
||||
}
|
||||
|
||||
const { hasBeenHandled } = maybeDelegateCommandToCustomHandler({
|
||||
commandName: "update-kc-gen",
|
||||
buildContext
|
||||
|
Loading…
x
Reference in New Issue
Block a user