From 51fb94ce532e3e671fd06eed0cae2f3a5e64b7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Meyer?= Date: Thu, 8 Feb 2024 11:52:42 +0100 Subject: [PATCH] NEXT-33411 - Fix script path for theme create command --- src/Storefront/Theme/Command/ThemeCreateCommand.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Storefront/Theme/Command/ThemeCreateCommand.php b/src/Storefront/Theme/Command/ThemeCreateCommand.php index 5a9ed4ba76f..898cea590df 100644 --- a/src/Storefront/Theme/Command/ThemeCreateCommand.php +++ b/src/Storefront/Theme/Command/ThemeCreateCommand.php @@ -183,6 +183,11 @@ private function getComposerTemplate(): string private function getThemeConfigTemplate(): string { + $scriptPath = 'app/storefront/dist/storefront/js/#snake-case#.js'; + if (Feature::isActive('v6.6.0.0')) { + $scriptPath = 'app/storefront/dist/storefront/js/#snake-case#/#snake-case#.js'; + } + return <<