diff --git a/debian/changelog b/debian/changelog index e8e7fb80..f1a7633f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (22.46.2) stable; urgency=low +hedera-web (22.46.3) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 5f7440b9..f064bd82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "22.46.2", + "version": "22.46.3", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/html.php b/web/html.php index a92c9072..2d6ae16a 100644 --- a/web/html.php +++ b/web/html.php @@ -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; diff --git a/webpack.config.js b/webpack.config.js index ef96cf9e..66fe50af 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -95,7 +95,7 @@ const prodConfig = { optimization: { moduleIds: 'deterministic' }, - //devtool: 'source-map' + devtool: 'source-map' }; const devConfig = {