PERF: production assets not minified
source url post processor forcing all scripts into an eval, minifier can not minify such files
This commit is contained in:
parent
54df781f28
commit
57e82ceac7
|
@ -1,5 +1,7 @@
|
|||
require 'discourse_iife'
|
||||
require 'source_url'
|
||||
|
||||
Rails.application.assets.register_preprocessor('application/javascript', DiscourseIIFE)
|
||||
Rails.application.assets.register_postprocessor('application/javascript', SourceURL)
|
||||
unless Rails.env.production?
|
||||
require 'source_url'
|
||||
Rails.application.assets.register_postprocessor('application/javascript', SourceURL)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue