javascript - Order of requires in Asset Pipeline, Does it Matter? -
in javascript application.js
file have following
//= require search //= require tutorial //= require_self //= require_tree .//message
is there problem me putting //= require_tree .//stock
after require_self
? looks working i'm not sure of implications of putting tree after self.
all doing changing order of javascript contained in application.js, if any, concatenated rest of assets. if have code in application.js required in search
or tutorial
, not work correctly.
you can read more directive in railsguides.
Comments
Post a Comment