Static assets not refreshing with symfony2 clear cache command

前端 未结 6 970
一个人的身影
一个人的身影 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:01

    I use different way. I'm adding all .scss files during development

        {% block stylesheets %}
            {% stylesheets filter='?uglifycss' filter='cssrewrite' filter="compass"
                "@TESTSSassBundle/Resources/public/css/_vars.scss" <-- this will be removed
                "@TESTSSassBundle/Resources/public/css/main.scss"
                "@TESTSSassBundle/Resources/public/css/header.scss"
                "@TESTSSassBundle/Resources/public/css/footer.scss"
             %}
                
            {% endstylesheets %}
        {% endblock %}  
    

    and after I finish development I remove them. This way I do not need to clear my cache and add/change any settings. It always work for me.

提交回复
热议问题