0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-09 21:45:25 +08:00
discourse/spec/fixtures/plugins/stylesheet_targets_plugin/plugin.rb
David Taylor 32fc73357d
DEV: Allow plugins to register admin-panel-specific CSS (#40345)
This saves loading unnecessary bytes for non-staff users. Aligns with
the existing core system for admin CSS.

Also makes use of the feature for some obviously-admins-specific CSS
files in gamification and ai plugins. More conversions are likely to
come in follow-up commits.
2026-05-28 11:03:38 +01:00

11 lines
397 B
Ruby
Vendored

# frozen_string_literal: true
# name: stylesheet-targets-plugin
# about: fixture used to exercise per-target plugin stylesheet registration
# version: 0.1
# authors: Discourse
register_asset "stylesheets/common/common.scss"
register_asset "stylesheets/mobile/mobile.scss", :mobile
register_asset "stylesheets/desktop/desktop.scss", :desktop
register_asset "stylesheets/admin/admin.scss", :admin