postBuild
import * as fs from "fs/promises";
import * as path from "path";
export default defineConfig({
plugins: [
react(),
keycloakify({
postBuild: async (buildContext) => {
await fs.rm(
path.join(
"theme",
buildContext.themeNames[0], // keycloakify-starter
"login", // Note: We assume we only have an login theme, if we had an account theme we would have to remove it there as well.
"resources",
"dist", // Your Vite dist/ or Webpack build/ is here.
"material-icons"
),
{ recursive: true }
);
}
})
]
});
Debugging
Last updated
Was this helpful?