Conversation
webpack was using public/index.html as both the HtmlWebpackPlugin template and its output, causing each build to re-inject a bundle.js script tag into the source. Move the template to src/index.html and let webpack regenerate public/index.html on build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
📝 WalkthroughWalkthroughThe PR relocates the HTML landing page template from ChangesTemplate Relocation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/index.html`:
- Around line 89-95: Replace the current unconditional Google Analytics
injection (the gtag script tag and the gtag(...) calls) with a consent-first
flow: implement a cookie-consent banner/modal that requests explicit consent,
stores the choice (e.g., in localStorage or a consent cookie), and only
dynamically injects the gtag.js script and runs the gtag('js', ...) and
gtag('config', 'G-QFE6TJB3X9') calls after the user grants consent; also provide
an opt-out toggle that removes or disables gtag (and clears related cookies) and
update the privacy policy to document analytics usage and consent behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 3df12835-f3b4-4091-94f2-fff899fc8818
📒 Files selected for processing (4)
.gitignorepublic/index.htmlsrc/index.htmlwebpack.config.js
💤 Files with no reviewable changes (2)
- public/index.html
- .gitignore
webpack was using public/index.html as both the HtmlWebpackPlugin template and its output, causing each build to re-inject a bundle.js script tag into the source. Move the template to src/index.html and let webpack regenerate public/index.html on build.
Summary by CodeRabbit