FEATURE: added error messages for bad theme CSS / JS

This commit is contained in:
Sam
2017-04-19 16:46:28 -04:00
parent 3835e16cf7
commit 7eabb90b71
11 changed files with 110 additions and 11 deletions

View File

@@ -13,6 +13,10 @@ module Stylesheet
@special_imports[name] = blk
end
register_import "theme_field" do
Import.new("theme_field.scss", source: @theme_field)
end
register_import "plugins" do
import_files(DiscoursePluginRegistry.stylesheets)
end
@@ -67,6 +71,7 @@ module Stylesheet
def initialize(options)
@theme_id = options[:theme_id]
@theme_field = options[:theme_field]
end
def import_files(files)