Skip to content

The Unified and Autonomous Development Platform

Fix the issue that resources are not packed even in production mode

robin shinedeaaa10e4eff
diff --git a/commons.wicket/src/main/java/com/gitplex/commons/wicket/AbstractWicketConfig.java b/commons.wicket/src/main/java/com/gitplex/commons/wicket/AbstractWicketConfig.java
index c029a1871f..34af060c51 100644
--- a/commons.wicket/src/main/java/com/gitplex/commons/wicket/AbstractWicketConfig.java
+++ b/commons.wicket/src/main/java/com/gitplex/commons/wicket/AbstractWicketConfig.java
@@ -125,7 +125,7 @@ public abstract class AbstractWicketConfig extends WebApplication {
});
- if (Bootstrap.prodMode) {
+ if (getConfigurationType() == RuntimeConfigurationType.DEPLOYMENT) {
List<Class<?>> resourcePackScopes = new ArrayList<>();
for (ResourcePackScopeContribution contribution: AppLoader.getExtensions(ResourcePackScopeContribution.class)) {
resourcePackScopes.addAll(contribution.getResourcePackScopes());