Skip to content

Remove dartsass-rails and importmap-rails - #651

Merged
hsbt merged 6 commits into
masterfrom
claude/remove-dartsass-rails-dependency-ba256a
Jul 26, 2026
Merged

Remove dartsass-rails and importmap-rails#651
hsbt merged 6 commits into
masterfrom
claude/remove-dartsass-rails-dependency-ba256a

Conversation

@hsbt

@hsbt hsbt commented Jul 26, 2026

Copy link
Copy Markdown
Member

application.scss only used trivial Sass features, so I converted it to plain CSS served directly by propshaft and dropped dartsass-rails, removing the build step and the platform-specific sass-embedded binaries. bootstrap.min.css is now linked separately in the layout.

importmap-rails turned out to load only dead code. application.js initializes jQuery-based tooltips and popovers, but jQuery is not loaded and no view has matching elements, so pages ran no JavaScript at all. Removing it also drops the runtime dependency on the ga.jspm.io CDN.

The conversion also drops IE-era workarounds and rules duplicated by Bootstrap 5. I verified assets:precompile and page rendering with both stylesheets and zero script tags.

Generated with Claude Code

hsbt and others added 6 commits July 27, 2026 06:43
The stylesheet only used trivial Sass features, so it can be plain CSS served directly by propshaft. This removes the dartsass build step and the platform-specific sass-embedded binaries.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
min-height: 0.01% (IE9) and -ms-overflow-style (IE10/11) no longer serve any browser, and overflow-x: auto is already defined by Bootstrap 5.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Uses :nth-child(n+6):where(:nth-child(-n+9)). The :where() keeps specificity at the original 0-1-1 so the later td.summary rules still override the range for the summary column.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
application.js initialized jQuery-based tooltips and popovers, but jQuery is not loaded and no view has matching elements, so every page ran no JavaScript at all. Dropping it removes the importmap-rails gem and the runtime dependency on the ga.jspm.io CDN.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The dump was a side effect of a local sqlite db:prepare in an unrelated commit, not a deliberate schema update.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit ea24c1b into master Jul 26, 2026
2 checks passed
@hsbt
hsbt deleted the claude/remove-dartsass-rails-dependency-ba256a branch July 26, 2026 22:34
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.

1 participant