Skip to content

Commit

Permalink
Scripts: Copy PHP files from src into build (#38715)
Browse files Browse the repository at this point in the history
* Copy any .php files to the build folder.

* Add CHANGELOG entry

Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
  • Loading branch information
ryanwelcher and gziolo committed Feb 11, 2022
1 parent 95d4b92 commit 5b901cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/scripts/CHANGELOG.md
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions packages/scripts/config/webpack.config.js
Expand Up @@ -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
Expand Down

0 comments on commit 5b901cb

Please sign in to comment.