diff --git a/flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskInstallWebpackPlugins.java b/flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskInstallWebpackPlugins.java index e59256c3afe..e17494f77e1 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskInstallWebpackPlugins.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/frontend/TaskInstallWebpackPlugins.java @@ -120,14 +120,8 @@ private void generatePluginFiles(String pluginName) throws IOException { String packageFile = FileUtils .readFileToString(new File(pluginTargetFile, PACKAGE_JSON), StandardCharsets.UTF_8); - final FrontendVersion packageVersion = new FrontendVersion( - Json.parse(packageFile).getString("version")); - FrontendVersion pluginVersion = new FrontendVersion( - packageJson.getString("version")); - if (packageVersion.isEqualTo(pluginVersion)) { - log().debug( - "Skipping install of {} for version {} already installed", - pluginName, pluginVersion.getFullVersion()); + final JsonObject targetJson = Json.parse(packageFile); + if(targetJson.hasKey("update") && !targetJson.getBoolean("update")) { return; } }