私には2つの質問があります。資産パイプラインがjavascriptをapplication.jsに圧縮していません
は、私も開発モードで3.1レールにすべての私のJavaScriptがデフォルトでapplication.jsに圧縮されなければならない間違った仮定を作っていますか?
私のタグには30個のjavascriptがあり、forverに読み込むのはなぜですか?
私application.jsファイルには、次のようになります。
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .
そして、それは次のようにレンダリングされ、ブラウザで:すべての私の他のJavaScriptをフルにレンダリングされますが
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
;
。
ありがとうございました!