From 7e0484c14b62534e1bce9c09ea2cac717f88584f Mon Sep 17 00:00:00 2001 From: Ryan Welcher Date: Thu, 10 Feb 2022 15:52:15 -0500 Subject: [PATCH 1/2] Copy any .php files to the build folder. --- packages/scripts/config/webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/scripts/config/webpack.config.js b/packages/scripts/config/webpack.config.js index d4ca729dca87f..68dd39c810d41 100644 --- a/packages/scripts/config/webpack.config.js +++ b/packages/scripts/config/webpack.config.js @@ -232,6 +232,11 @@ const config = { context: 'src', noErrorOnMissing: true, }, + { + from: '**/**.php', + context: 'src', + noErrorOnMissing: true, + }, ], } ), // The WP_BUNDLE_ANALYZER global variable enables a utility that represents From 6266529a96cdc69a9d1d80947d9202621b7cccb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Zi=C3=B3=C5=82kowski?= Date: Fri, 11 Feb 2022 08:38:09 +0100 Subject: [PATCH 2/2] Add CHANGELOG entry --- packages/scripts/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/scripts/CHANGELOG.md b/packages/scripts/CHANGELOG.md index 403befb5d8917..3255f16269946 100644 --- a/packages/scripts/CHANGELOG.md +++ b/packages/scripts/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +### New Feature + +- Automatically copy PHP files located in the `src` folder and its subfolders to the output directory (`build` by default) ([#38715](https://github.com/WordPress/gutenberg/pull/38715)). + + ## 21.0.0 (2022-02-10) ### Breaking Changes