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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants