mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -15,7 +15,7 @@ module Stylesheet
|
||||
footer:after { content: '#{error}' }"
|
||||
end
|
||||
|
||||
def self.compile_asset(asset, options={})
|
||||
def self.compile_asset(asset, options = {})
|
||||
|
||||
if Importer.special_imports[asset.to_s]
|
||||
filename = "theme.scss"
|
||||
@ -26,12 +26,12 @@ module Stylesheet
|
||||
file = File.read path
|
||||
end
|
||||
|
||||
compile(file,filename,options)
|
||||
compile(file, filename, options)
|
||||
|
||||
end
|
||||
|
||||
def self.compile(stylesheet, filename, options={})
|
||||
source_map_file = options[:source_map_file] || "#{filename.sub(".scss","")}.css.map";
|
||||
def self.compile(stylesheet, filename, options = {})
|
||||
source_map_file = options[:source_map_file] || "#{filename.sub(".scss", "")}.css.map";
|
||||
|
||||
engine = SassC::Engine.new(stylesheet,
|
||||
importer: Importer,
|
||||
@ -44,7 +44,6 @@ module Stylesheet
|
||||
theme_field: options[:theme_field],
|
||||
load_paths: [ASSET_ROOT])
|
||||
|
||||
|
||||
result = engine.render
|
||||
|
||||
if options[:rtl]
|
||||
|
Reference in New Issue
Block a user