This commit is contained in:
parent
679bdc6235
commit
339f885d1b
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (22.46.2) stable; urgency=low
|
hedera-web (22.46.3) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "22.46.2",
|
"version": "22.46.3",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
10
web/html.php
10
web/html.php
|
@ -43,10 +43,16 @@ function getWebpackAssets() {
|
||||||
&& property_exists($asset, 'js'))
|
&& property_exists($asset, 'js'))
|
||||||
$jsFiles[] = $serverPath . $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_))
|
if (isset($wpAssets->_empty_))
|
||||||
$jsFiles[] = $serverPath . $wpAssets->_empty_->js[0];
|
addAssets($jsFiles, $wpAssets->_empty_);
|
||||||
if (isset($wpAssets->{''}))
|
if (isset($wpAssets->{''}))
|
||||||
$jsFiles[] = $serverPath . $wpAssets->{''}->js[0];
|
addAssets($jsFiles, $wpAssets->{''});
|
||||||
|
|
||||||
$jsFiles[] = $serverPath . $wpAssets->main->js;
|
$jsFiles[] = $serverPath . $wpAssets->main->js;
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ const prodConfig = {
|
||||||
optimization: {
|
optimization: {
|
||||||
moduleIds: 'deterministic'
|
moduleIds: 'deterministic'
|
||||||
},
|
},
|
||||||
//devtool: 'source-map'
|
devtool: 'source-map'
|
||||||
};
|
};
|
||||||
|
|
||||||
const devConfig = {
|
const devConfig = {
|
||||||
|
|
Loading…
Reference in New Issue