Skip to content

Commit

Permalink
fix: Clean Vite production output folder on build (#12304)
Browse files Browse the repository at this point in the history
Without this you get

(!) outDir /.../project/target/classes/META-INF/VAADIN/webapp is not inside project root and will not be emptied.
Use --emptyOutDir to override.
  • Loading branch information
Artur- committed Nov 8, 2021
1 parent d1e7fbb commit a04b2e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ public static void runWebpack(PluginAdapterBase adapter)
*/
public static void runVite(PluginAdapterBase adapter)
throws TimeoutException, URISyntaxException {
runFrontendBuildTool(adapter, "Vite", "vite/bin/vite.js", "build");
runFrontendBuildTool(adapter, "Vite", "vite/bin/vite.js", "build",
"--emptyOutDir");
}

private static void runFrontendBuildTool(PluginAdapterBase adapter,
Expand Down

0 comments on commit a04b2e5

Please sign in to comment.