8000 wp-env: remove mappings field by t-hamano · Pull Request #774 · WordPress/create-block-theme · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wp-env: remove mappings field #774

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

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Conversation

t-hamano
Copy link
Contributor

In #764, the local dev-env/themes directory is now mapped to the wp-content/themes directory to make it easier to create or check changes to themes.

This may be convenient, but in the initial setup, there are no themes, which causes the following problems:

  • The frontend is blank.
  • You'll get a warning that the TT5 theme is broken.
55c6c3481a08a9153af05bf7f7e6058e.mp4

The mappings field should be excluded from the default settings. Contributors who really need the mapping can do so by creating a .wp-env.override.json file like this:

{
	"mappings": {
		"wp-content/themes": "./dev-env/themes"
	}
}

@t-hamano t-hamano requested a review from pbking May 18, 2025 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0