Static assets not refreshing with symfony2 clear cache command

前端 未结 6 952
一个人的身影
一个人的身影 2021-02-13 17:12

I\'m using Assetic with the compass filter to pass and compile .scss files. This part of the setup seems to work fine. However, my understanding was that in the app_dev environm

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-13 18:02

    I think I've found the answer here:

    assetic compass filter, css not updating when changing imported file (google groups discussion)

    It seems that if a change is made to an imported file without any changes to the parent file then the parent file will not be recompiled. The result being the change will not be seen until you force recompilation.

    The poster on google groups suggested a possible fix (hack!) by editing the AsseticController. I haven't tried it yet, but even if it works I'd rather not edit a vendor package.

提交回复
热议问题