Backend: Webpack assets fix
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-05-26 10:34:20 +02:00
parent 60eabacf22
commit 2f0dc7e282
3 changed files with 7 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.407.70) stable; urgency=low hedera-web (1.407.71) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.407.70", "version": "1.407.71",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {

View File

@ -43,7 +43,11 @@ function getWebpackAssets() {
&& property_exists($asset, 'js')) && property_exists($asset, 'js'))
$jsFiles[] = $serverPath . $asset->js; $jsFiles[] = $serverPath . $asset->js;
$jsFiles[] = $serverPath . $wpAssets->{''}->js[0]; if (isset($wpAssets->_empty_))
$jsFiles[] = $serverPath . $wpAssets->_empty_->js[0];
if (isset($wpAssets->{''}))
$jsFiles[] = $serverPath . $wpAssets->{''}->js[0];
$jsFiles[] = $serverPath . $wpAssets->main->js; $jsFiles[] = $serverPath . $wpAssets->main->js;
return $jsFiles; return $jsFiles;