Skip to content

Commit

Permalink
Merge branch 'NEXT-33411/fix-theme-create-async-js' into '6.5.x'
Browse files Browse the repository at this point in the history
NEXT-33411 - Fix script path for theme create command

See merge request shopware/6/product/platform!12922
  • Loading branch information
BrocksiNet committed Feb 14, 2024
2 parents c8ca22c + 51fb94c commit 669a195
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Storefront/Theme/Command/ThemeCreateCommand.php
Expand Up @@ -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 <<<EOL
{
"name": "#name#",
Expand All @@ -199,7 +204,7 @@ private function getThemeConfigTemplate(): string
],
"script": [
"@Storefront",
"app/storefront/dist/storefront/js/#snake-case#/#snake-case#.js"
"$scriptPath"
],
"asset": [
"@Storefront",
Expand Down

0 comments on commit 669a195

Please sign in to comment.