refs #3971 Webpack assets fix
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-11-18 01:01:05 +01:00
parent 679bdc6235
commit 339f885d1b
4 changed files with 11 additions and 5 deletions

2
debian/changelog vendored
View File

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

View File

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

View File

@ -43,10 +43,16 @@ function getWebpackAssets() {
&& property_exists($asset, 'js'))
$jsFiles[] = $serverPath . $asset->js;
function addAssets(&$jsFiles, $assets) {
foreach ($assets->js as $asset)
if (!str_starts_with($asset, 'chunk.'))
$jsFiles[] = $serverPath.$asset;
}
if (isset($wpAssets->_empty_))
$jsFiles[] = $serverPath . $wpAssets->_empty_->js[0];
addAssets($jsFiles, $wpAssets->_empty_);
if (isset($wpAssets->{''}))
$jsFiles[] = $serverPath . $wpAssets->{''}->js[0];
addAssets($jsFiles, $wpAssets->{''});
$jsFiles[] = $serverPath . $wpAssets->main->js;

View File

@ -95,7 +95,7 @@ const prodConfig = {
optimization: {
moduleIds: 'deterministic'
},
//devtool: 'source-map'
devtool: 'source-map'
};
const devConfig = {