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

Support Script Debug #1458

Merged
merged 2 commits into from Oct 29, 2021

Conversation

BrookeDot
Copy link
Contributor

@BrookeDot BrookeDot commented Oct 7, 2021

Description

Understrap is already including the unminified version of assets.
These can be useful when debugging locally, or if minification is happening elsewhere in the stack.

WordPress uses the SCRIPT_DEBUG constant to tell core not to minify assets.
This PR brings that logic to understrap

Motivation and Context

Fixes #1456 which has more context on why this is needed.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I pulled my branch from develop.
  • I am submitting my pull request to develop.
  • I have resolved any conflicts merging this pull request would create.
  • I have checked that there aren't other open Pull Requests for the same update/change.
  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • (Optional) My change requires a change to the documentation.
  • (Optional) I have updated the documentation accordingly.
  • (Optional) My change requires a change to the translations.
  • (Optional) I have updated the translations accordingly.
  • composer cs:check has passed locally.
  • composer lint:php has passed locally.
  • I have read the CONTRIBUTING document.

I pulled from Feature Bootstrap 5, but looks like I should have pulled from develop my thought was this could be released along side the Bootstrap 5 launch and it made sense to do the work now instead of doing it again when that release happens.

Understrap is already including the unminified version of assets.
These can be useful when debugging locally, or if minification is happening elsewhere in the stack.

WordPress uses the SCRIPT_DEBUG constant to tell core not to minify assets.
This PR brings that logic to understrap
0dp
0dp previously approved these changes Oct 7, 2021
bacoords
bacoords previously approved these changes Oct 7, 2021
@bacoords bacoords changed the base branch from feature/bs5-development to develop October 29, 2021 23:03
@bacoords bacoords dismissed stale reviews from 0dp and themself October 29, 2021 23:03

The base branch was changed.

@bacoords bacoords merged commit 25ef3df into understrap:develop Oct 29, 2021
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.

None yet

3 participants