Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add APIs to remove and clear custom CSS and JS files#2947

Open
goosys wants to merge 1 commit intothoughtbot:mainfrom
goosys:delete_and_clear_js_and_css
Open

Add APIs to remove and clear custom CSS and JS files#2947
goosys wants to merge 1 commit intothoughtbot:mainfrom
goosys:delete_and_clear_js_and_css

Conversation

Copy link
Contributor

goosys commented Nov 28, 2025 *
edited
Loading

The following methods have been added:

  • Administrate::Engine.delete_stylesheet
  • Administrate::Engine.delete_javascript
  • Administrate::Engine.clear_stylesheets
  • Administrate::Engine.clear_javascripts

While custom CSS and JS are automatically injected by plugins, there are cases where application developers may not need them. For example, if their application has already migrated to Stimulus and no longer requires jQuery-based JavaScript, these APIs make it easy to remove or clear unnecessary assets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant