mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 12:43:54 -06:00
57e82ceac7
source url post processor forcing all scripts into an eval, minifier can not minify such files
8 lines
257 B
Ruby
8 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
|