From 1bad15c5c371d239fd7d8669aad58162b2412b08 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 19 Sep 2024 13:53:06 +0200 Subject: [PATCH] Just use assets.php --- lib/client-assets.php | 2 +- tools/webpack/script-modules.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index de344fe33f26c5..5f25fa6c81c357 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -614,7 +614,7 @@ function gutenberg_register_script_modules() { * 'interactivity/debug.min.js' => array('dependencies' => array(…), 'version' => '…'), * 'interactivity-router/index.min.js' => … */ - $assets = include gutenberg_dir_path() . '/build-module/assets.production.php'; + $assets = include gutenberg_dir_path() . '/build-module/assets.php'; foreach ( $assets as $file_name => $script_module_data ) { $package_name = dirname( $file_name ); diff --git a/tools/webpack/script-modules.js b/tools/webpack/script-modules.js index e93edb43167a4b..592a06116ed0f0 100644 --- a/tools/webpack/script-modules.js +++ b/tools/webpack/script-modules.js @@ -108,7 +108,7 @@ module.exports = { ...plugins, new DependencyExtractionWebpackPlugin( { combineAssets: true, - combinedOutputFile: `./assets.${ baseConfig.mode }.php`, + combinedOutputFile: `./assets.php`, } ), ], watchOptions: {