Skip to content

docs: add note about integrity attribute when using local Bootstrap files #41394

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

Closed
wants to merge 2 commits into from

Conversation

hrazhdari
Copy link

@hrazhdari hrazhdari commented Apr 19, 2025

This PR adds a small documentation section about troubleshooting issues with the integrity attribute when using Bootstrap locally.

When loading Bootstrap from local files, using the integrity attribute may cause files not to load due to hash mismatches. This update explains the issue and provides a recommended solution for local development.

The note was added to introduction.mdx under the "Getting Started" section.

Fixes #41388

@hrazhdari
Copy link
Author

Hi, this is a small docs PR about local usage of Bootstrap. Thanks for reviewing 🙌

@github-project-automation github-project-automation bot moved this to To do in v5.3.6 Apr 20, 2025
@julien-deramond julien-deramond moved this from To do to Needs review in v5.3.6 Apr 20, 2025
@mdo mdo added this to v5.4.0 Apr 22, 2025
@mdo mdo removed this from v5.3.6 Apr 22, 2025
@github-project-automation github-project-automation bot moved this to Needs review in v5.4.0 Apr 22, 2025
@hrazhdari hrazhdari requested a review from a team as a code owner May 12, 2025 20:45
@hrazhdari
Copy link
Author

Thanks for the feedback! I’ve updated the documentation to include security precautions and hash generation instructions. I’ve also added a helper script (build/gen-integrity.js) to simplify generating correct integrity hashes for local files.

Let me know if anything else is needed.

@julien-deramond julien-deramond removed this from v5.4.0 May 12, 2025
@github-project-automation github-project-automation bot moved this to To do in v5.3.7 May 12, 2025
@julien-deramond julien-deramond moved this from To do to Needs review in v5.3.7 May 12, 2025
@XhmikosR
Copy link
Member

We don;'t need this, we already have scripts to do this.

@XhmikosR XhmikosR closed this May 13, 2025
@github-project-automation github-project-automation bot moved this from Needs review to Done in v5.3.7 May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Troubleshooting: Integrity Issues with Local Files
3 participants