discourse/config/initializers/10-discourse_iife.rb

6 lines
220 B
Ruby

require 'discourse_iife'
require 'source_url'
Rails.application.assets.register_preprocessor('application/javascript', DiscourseIIFE)
Rails.application.assets.register_postprocessor('application/javascript', SourceURL)