Static assets not refreshing with symfony2 clear cache command

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

    Asset compilation is not part of the caching system. You need to re-install assets when you make changes, regardless of the environment.

    app/console assets:install web
    

    If the filesystem you're on supports symbolic links, you can avoid having to run this command for every change and instead just install the assets as such

    app/console assets:install web --symlink
    

    But since you're using Sass, this probably isn't an option for you.

    HTH

提交回复
热议问题