mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 12:27:35 -05:00
57e82ceac7
source url post processor forcing all scripts into an eval, minifier can not minify such files
7 lines
257 B
Ruby
7 lines
257 B
Ruby
require 'discourse_iife'
|
|
|
|
Rails.application.assets.register_preprocessor('application/javascript', DiscourseIIFE)
|
|
unless Rails.env.production?
|
|
require 'source_url'
|
|
Rails.application.assets.register_postprocessor('application/javascript', SourceURL)
|
|
end
|