mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Fix asset precompilation issues.
This commit is contained in:
parent
317f9bcd08
commit
45a23f524a
3 changed files with 4 additions and 1 deletions
|
@ -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 a new issue