mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 11:33:40 +08:00
41ee7cad0e
After adding styles in the mobile scss they will also be applied to desktop without this change. https://meta.discourse.org/t/registering-assets-for-mobile-and-desktop-making-site-responsive/65041/2
22 lines
659 B
Plaintext
22 lines
659 B
Plaintext
# frozen_string_literal: true
|
|
|
|
# name: <%= name %>
|
|
# about: <%= @about %>
|
|
# version: 0.1
|
|
# authors: <%= @github_username %>
|
|
# url: https://github.com/<%= @github_username %>
|
|
|
|
register_asset 'stylesheets/common/<%= dasherized_name %>.scss'
|
|
register_asset 'stylesheets/desktop/<%= dasherized_name %>.scss', :desktop
|
|
register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss', :mobile
|
|
|
|
enabled_site_setting :<%= underscored_name %>_enabled
|
|
|
|
PLUGIN_NAME ||= '<%= classified_name %>'
|
|
|
|
load File.expand_path('lib/<%= dasherized_name %>/engine.rb', __dir__)
|
|
|
|
after_initialize do
|
|
# https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb
|
|
end
|