How to make Symfony2 to load CSS, JS files directly and not via PHP?

前端 未结 5 1015
无人及你
无人及你 2021-02-04 04:55

OLD QUESTION, SEE BELOW FOR THE UPDATED VERSION

My development environment is not the fastest. I takes roughly 500ms per PHP request. It\'s starting to

5条回答
  •  执笔经年
    2021-02-04 05:28

    If you use assetic:dump, then you have to cache:clear -e dev

    "...if you run cache:clear on your production cache, it warms up the cache with debug mode on. If you try to dump assets afterwards, weird things might happen."

    i found it here: http://sftuts.com/using-assetic-in-symfony2-for-css-compression (4. paragraph)

提交回复
热议问题