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

Switch to string constants. #30490

Merged
merged 2 commits into from Mar 31, 2020
Merged

Switch to string constants. #30490

merged 2 commits into from Mar 31, 2020

Conversation

XhmikosR
Copy link
Member

@XhmikosR XhmikosR commented Mar 31, 2020

This allows the minifier to mangle the constants. It also allows the linter to find unused strings properly.

While at it, remove a few unused properties.

File Before After Diff
bootstrap.bundle.min.js 22.09 kB 21.13 kB -0.96 kB (-4.35 %)
bootstrap.min.js 15.4 kB 14.46 kB -0.94 kB (-3.86 %)

Refs #20011, refs #30358

Preview: https://deploy-preview-30490--twbs-bootstrap.netlify.com/

This allows the minifier to mangle the constants. It also allows the linter to find unused strings properly.

While at it, remove a few unused properties.

File                        Before      After       Diff
--------------------------------------------------------
bootstrap.bundle.min.js     22.09 kB    21.13 kB    -0.96 kB (-4.35 %)
bootstrap.min.js            15.4 kB     14.46 kB    -0.94 kB (-3.86 %)
@XhmikosR XhmikosR added this to Inbox in v4.5.0 via automation Mar 31, 2020
@XhmikosR XhmikosR marked this pull request as ready for review March 31, 2020 15:03
@XhmikosR XhmikosR requested a review from a team as a code owner March 31, 2020 15:03
@XhmikosR XhmikosR merged commit f7ed579 into v4-dev Mar 31, 2020
@XhmikosR XhmikosR deleted the v4-dev-xmr-const-strings branch March 31, 2020 18:27
@XhmikosR XhmikosR moved this from Inbox to Shipped in v4.5.0 Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v4.5.0
  
Shipped
Development

Successfully merging this pull request may close these issues.

None yet

3 participants