FIX plugin generator: mobile, desktop stylesheets registering (#9039)

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
This commit is contained in:
spirobel 2020-02-25 11:43:17 +01:00 committed by GitHub
parent a5c7f0c98d
commit 41ee7cad0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,8 +7,8 @@
# url: https://github.com/<%= @github_username %> # url: https://github.com/<%= @github_username %>
register_asset 'stylesheets/common/<%= dasherized_name %>.scss' register_asset 'stylesheets/common/<%= dasherized_name %>.scss'
register_asset 'stylesheets/desktop/<%= dasherized_name %>.scss' register_asset 'stylesheets/desktop/<%= dasherized_name %>.scss', :desktop
register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss' register_asset 'stylesheets/mobile/<%= dasherized_name %>.scss', :mobile
enabled_site_setting :<%= underscored_name %>_enabled enabled_site_setting :<%= underscored_name %>_enabled