Compare commits
No commits in common. "main" and "0.4.5" have entirely different histories.
1 changed files with 14 additions and 12 deletions
|
@ -1,19 +1,21 @@
|
||||||
<?php declare(strict_types=1);
|
<?php declare(strict_types=1);
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||||
use Symfony\Config\FrameworkConfig;
|
|
||||||
|
|
||||||
return static function (
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||||
ContainerConfigurator $containerConfigurator,
|
$containerConfigurator->extension('framework', [
|
||||||
FrameworkConfig $frameworkConfig,
|
'asset_mapper' => [
|
||||||
): void {
|
'paths' => [
|
||||||
$frameworkConfig->assetMapper()
|
'assets/',
|
||||||
->path('assets/', true)
|
],
|
||||||
->missingImportMode('strict')
|
'missing_import_mode' => 'strict',
|
||||||
->importmapPolyfill(false)
|
],
|
||||||
;
|
]);
|
||||||
if ($containerConfigurator->env() === 'prod') {
|
if ($containerConfigurator->env() === 'prod') {
|
||||||
$frameworkConfig->assetMapper()
|
$containerConfigurator->extension('framework', [
|
||||||
->missingImportMode('warn');
|
'asset_mapper' => [
|
||||||
|
'missing_import_mode' => 'warn',
|
||||||
|
],
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue