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 from the build/ folder are enqueued without respecting SCRIPT_DEBUG #68368

Open
3 of 6 tasks
OlaIola opened this issue Dec 28, 2024 · 1 comment
Open
3 of 6 tasks
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Bug An existing feature does not function as intended

Comments

@OlaIola
Copy link

OlaIola commented Dec 28, 2024

Description

Working with the Gutenberg plugin while developing a project, I found out that Gutenberg enqueues minified scripts that complicate debugging. At the same time, the same files in Core will be enqueued without minification if the SCRIPT_DEBUG is true and Gutenberg is deactivated.

Step-by-step reproduction instructions

  1. Activate Gutenberg plugin
  2. define( 'SCRIPT_DEBUG', true );
  3. Check in the Network tab in the Developer Tools that scripts from the build folder are still minified.

Screenshots, screen recording, code snippet

No response

Environment info

Gutenberg v19.9.0

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@OlaIola OlaIola added the [Type] Bug An existing feature does not function as intended label Dec 28, 2024
@Rishit30G
Copy link
Contributor

I can confirm that the scripts are minified despite setting the SCRIPT_DEBUG to true
Image

@t-hamano t-hamano added the Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants