Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从一个库中压缩很多文件。但其中一个必须先加载。所以我需要做这样的事情:
{% javascripts '@MyBundleBundle/Resources/public/js/foo-file.js' '@MyBundleBundle/Resources/public/js/(everything except foo-file).js' output='js/all.js' %}
有任何想法吗?
尝试以下操作:
{% javascripts '@MyBundleBundle/Resources/public/js/foo-file.js' '@MyBundleBundle/Resources/public/js/*' output='js/all.js' %}
它将合并@MyBundleBundle/Resources/public/js/目录中的每个文件,作为foo-file.js第一个文件。
@MyBundleBundle/Resources/public/js/
foo-file.js