Skip to content

Commit 083d94c

Browse files
committed
Webpack memmory performance
1 parent 172c254 commit 083d94c

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/bundle/Command/CompileAssetsCommand.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ protected function configure(): void
5151
'Config name passed to webpack encore',
5252
null
5353
)
54+
->addOption(
55+
'frontend-config-name',
56+
'fcn',
57+
InputOption::VALUE_REQUIRED,
58+
'Frontend config name passed to webpack encore',
59+
null
60+
)
5461
;
5562
}
5663

@@ -68,6 +75,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6875
$timeout = (float)$input->getOption('timeout');
6976
$env = $input->getOption('env');
7077
$configName = $input->getOption('config-name');
78+
$frontendConfigName = $input->getOption('frontend-config-name');
7179

7280
$output->writeln(sprintf('Compiling all <comment>%s</comment> assets.', $env));
7381
$output->writeln('');
@@ -79,6 +87,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7987
$yarnEncoreCommand .= " --config-name {$configName}";
8088
}
8189

90+
if (!empty($frontendConfigName)) {
91+
$yarnEncoreCommand .= " --config ./node_modules/@ibexa/frontend-config/ibexa.webpack.{$frontendConfigName}.configs";
92+
}
93+
8294
$debugFormatter = $this->getHelper('debug_formatter');
8395

8496
$process = Process::fromShellCommandline(

src/bundle/DependencyInjection/IbexaAdminUiExtension.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ class IbexaAdminUiExtension extends Extension implements PrependExtensionInterfa
2828
'ibexa.webpack.custom.config.js' => [
2929
'ibexa.webpack.custom.config.js' => [],
3030
],
31+
'ibexa.webpack.internal.config.js' => [
32+
'ibexa.webpack.internal.config.js' => [],
33+
],
34+
'ibexa.webpack.richtext.config.js' => [
35+
'ibexa.webpack.richtext.config.js' => [],
36+
],
37+
'ibexa.webpack.libs.config.js' => [
38+
'ibexa.webpack.libs.config.js' => [],
39+
],
3140
'ibexa.config.setup.js' => [
3241
'ibexa.config.setup.js' => [],
3342
],

0 commit comments

Comments
 (0)