mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
split js with vendor/application
avoid one huge js bundle and instead break it down to application and vendor (3rd party) our app changes a lot, vendor changes a lot less
This commit is contained in:
7
app/assets/javascripts/jquery_include.js.erb
Normal file
7
app/assets/javascripts/jquery_include.js.erb
Normal file
@@ -0,0 +1,7 @@
|
||||
<%
|
||||
if Rails.env.development?
|
||||
require_asset ("development/jquery-2.0.3.js")
|
||||
else
|
||||
require_asset ("production/jquery-2.0.3.min.js")
|
||||
end
|
||||
%>
|
||||
Reference in New Issue
Block a user