From ae70cd2b4e8b42cabdd815042a5f33cb00393f19 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 18 Nov 2022 01:24:23 +0100 Subject: [PATCH] refs #3971 Webpack assets: exclude imported --- debian/changelog | 2 +- package.json | 2 +- web/html.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 72d43b33..9d6acb0f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (22.46.4) stable; urgency=low +hedera-web (22.46.5) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 8d2eebff..f18090e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "22.46.4", + "version": "22.46.5", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/html.php b/web/html.php index bd663093..923f8742 100644 --- a/web/html.php +++ b/web/html.php @@ -45,7 +45,7 @@ function getWebpackAssets() { function addAssets(&$jsFiles, $assets) { foreach ($assets->js as $asset) - if (strpos($asset, 'chunk.') !== 0) + if (preg_match('/^chunk\./', basename($asset)) === 0) $jsFiles[] = $serverPath.$asset; }