discourse/config/initializers/010-discourse_iife.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
312 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'discourse_iife'
Rails.application.config.assets.configure do |env|
env.register_preprocessor('application/javascript', DiscourseIIFE)
unless Rails.env.production?
require 'source_url'
env.register_postprocessor('application/javascript', SourceURL)
end
end