mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:42:02 +08:00
DEV: Build theme transpiler in custom envs (#23785)
(i.e. non-production, non-test, non-development environments :P like `RAILS_ENV="profile"`)
This commit is contained in:
parent
3ee8678cf1
commit
fbf92a2212
|
@ -134,9 +134,7 @@ class DiscourseJsProcessor
|
|||
ctx.attach("rails.logger.error", proc { |err| Rails.logger.error(err.to_s) })
|
||||
|
||||
# Theme template AST transformation plugins
|
||||
if Rails.env.development? || Rails.env.test?
|
||||
@processor_mutex.synchronize { build_theme_transpiler }
|
||||
end
|
||||
@processor_mutex.synchronize { build_theme_transpiler } if !Rails.env.production?
|
||||
|
||||
ctx.eval(File.read(TRANSPILER_PATH), filename: "theme-transpiler.js")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user