Skip to content

Magento 2: no assets generated when using custom magento_themes without split_static_deployment #3786

@enr-beck-mellow

Description

@enr-beck-mellow
  • Deployer version: 7.3.3
  • Deployment OS: MacOS

When using a custom magento_themes configuration like
->set('magento_themes', [ 'myvendor/theme-at' => 'de_AT', 'myvendor/theme-be' => 'fr_BE nl_BE', ]);
and not setting "split_static_deployment" to true no assets are generated.

The problem is in

if (count(get('magento_themes')) > 0 ) {
foreach (get('magento_themes') as $theme) {
$themesToCompile .= ' -t ' . $theme;
}
}
run("{{bin/php}} {{release_or_current_path}}/bin/magento setup:static-content:deploy --content-version={{content_version}} {{static_deploy_options}} {{static_content_locales}} $themesToCompile -j {{static_content_jobs}}");
where its only checked if there are multiple themes to process and then the language configurations from the custom configuration get passed as theme names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions