アセット パイプラインを使用して JavaScript を作成しています。この JavaScript は、多くのサード パーティの開発者に引き渡されます。生成された (おそらく難読化された) 出力ファイルの先頭に警告コメントを配置したいのですが、sprockets と coffeescript の組み合わせでこれを実現する方法が明確ではありません。
# 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.
###
The following code was compiled from source by MF.
Please do not edit this JavaScript directly.
####
#= require util/extensions
#= require util/date_manipulation
#= require util/format
#= require points_data
#= require graphics/canvas_graphics
#= require graphics/explorer_canvas_graphics
#= require renderer
これで次の結果が得られます。
(function() {
/*
The following code was compiled from source by MF.
Please do not edit this JavaScript directly.
*/
}).call(this);
私が欲しいのはこれ(またはそれに近いもの)です:
/*
The following code was compiled from source by MF.
Please do not edit this JavaScript directly.
*/
(function() {
// ******** my compiled code from all those required files! *******
}).call(this);
どうすればこれを機能させることができますか?