Merge pull request 'Backend: Webpack assets fix' (#7) from 3971-modernizeStyle into test
gitea/hedera-web/pipeline/head This commit looks good Details

Reviewed-on: #7
This commit is contained in:
Juan Ferrer 2022-05-26 08:35:10 +00:00
commit 1c311a851f
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.

View File

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

View File

@ -43,7 +43,11 @@ function getWebpackAssets() {
&& property_exists($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;
return $jsFiles;