mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
FEATURE: Allow selection of highlight js languages
PERF: stop loading highlight js on load To get latest highlight js run bin/rake highlightjs:update
This commit is contained in:
@ -32,6 +32,9 @@ module Discourse
|
||||
require 'es6_module_transpiler/rails'
|
||||
require 'js_locale_helper'
|
||||
|
||||
# tiny file needed by site settings
|
||||
require 'highlight_js/highlight_js'
|
||||
|
||||
# mocha hates us, active_support/testing/mochaing.rb line 2 is requiring the wrong
|
||||
# require, patched in source, on upgrade remove this
|
||||
if Rails.env.test? || Rails.env.development?
|
||||
|
Reference in New Issue
Block a user