Fix asset precompilation issues.
This commit is contained in:
parent
317f9bcd08
commit
45a23f524a
|
@ -4,7 +4,7 @@
|
|||
class DiscourseSassImporter < Sass::Importers::Filesystem
|
||||
GLOB = /\*|\[.+\]/
|
||||
|
||||
def initialize(root)
|
||||
def initialize(*args)
|
||||
@root = Rails.root.join('app', 'assets', 'stylesheets').to_s
|
||||
@same_name_warnings = Set.new
|
||||
end
|
||||
|
|
|
@ -16,6 +16,9 @@ task 'assets:precompile:before' do
|
|||
# let's make precompile faster using redis magic
|
||||
require 'sprockets'
|
||||
require 'digest/sha1'
|
||||
require_dependency 'discourse_sass_importer'
|
||||
|
||||
Sprockets::SassImporter = DiscourseSassImporter
|
||||
|
||||
module ::Sprockets
|
||||
|
||||
|
|
Loading…
Reference in New Issue