Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Copy PHP files from src into build #38715

Merged
merged 2 commits into from Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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