The site exporter should always turn off theme development mode
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3591365. -->
Reported by: [phenaproxima](https://www.drupal.org/user/205645)
Related to !886
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>If you have theme development mode turned on (aggregation off, caching off, etc.), those configuration values could accidentally land in an exported site template.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>By default, always enable aggregation and render caching, and turn off Twig's development mode. To allow people to export a site template <em>with</em> those flags as-is, add a <code>--dev</code> flag to <code>drush site:export</code> which preserves the values as they are in active configuration.</p>
<p>Enabling development mode in the first place will necessitate a new, specialized config action. We can add that to Drupal CMS Helper; we've done it before and we can do it again. Config actions are strictly developer-facing, and that's our only API surface.</p>
issue