Skip to content

Scripts from the build/ folder are enqueued without respecting SCRIPT_DEBUG #68368

Open
@OlaIola

Description

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

Metadata

Assignees

No one assigned

    Labels

    Gutenberg PluginIssues or PRs related to Gutenberg Plugin management related efforts[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions