Assetic not creating combined links

梦想与她 提交于 2019-12-01 00:09:20

I had this exact same problem, and for me the issue was in my app.php file. I was loading the kernel as follows:

$kernel = new AppKernel('prod', true);

It appears as though this caused the function to not run in debug mode and combine the assets. When i changed the second argument to false, the assets successfully combined on production and remained uncombined on dev:

$kernel = new AppKernel('prod', false);

Also, you can pass combine=true as an argument to explicitly request that the assets get combined just to test that this functionality is working properly.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!