mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 09:04:52 +08:00
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
62e260c69c
commit
098b292c0f
|
@ -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
Block a user